Not to use fn()
style in inline Code
.
OK:
`fn` function
`object#method`メソッド
NG:
`fn()`
`object#method()`
`object.method()`
Install with npm:
npm install textlint-rule-no-js-function-paren
Via .textlintrc
(Recommended)
{
"rules": {
"no-js-function-paren": true
}
}
Via CLI
textlint --rule no-js-function-paren README.md
allow
:string[]
- A collection of allow function/method name
Allow to use Symbol()
{
"rules": {
"no-js-function-paren": {
"allow": ["Symbol"]
}
}
}
See Releases page.
Install devDependencies and Run npm test
:
npm i -d && npm test
Pull requests and stars are always welcome.
For bugs and feature requests, please create an issue.
- Fork it!
- Create your feature branch:
git checkout -b my-new-feature
- Commit your changes:
git commit -am 'Add some feature'
- Push to the branch:
git push origin my-new-feature
- Submit a pull request :D
MIT © azu