UNPKG

textlint-rule-no-js-function-paren

Version:

textlint rule preset for JavaScript function notation.

77 lines (49 loc) 1.32 kB
# textlint-rule-preset-js-function textlint rule preset for JavaScript function notation. ## Install Install with [npm](https://www.npmjs.com/): npm install textlint-rule-preset-js-function ## Usage Via `.textlintrc`(Recommended) ```json { "rules": { "preset-js-function": true } } ``` Via CLI ``` textlint --rule preset-js-function README.md ``` ## Options - `allow`: `string[]` - A collection of allow function/method name Allow to use `Symbol()` ```json { "rules": { "preset-js-function": { "allow": ["Symbol"] } } } ``` ## Changelog See [Releases page](https://github.com/azu/textlint-rule-preset-js-function/releases). ## Running tests Install devDependencies and Run `npm test`: npm i -d && npm test ## Contributing Pull requests and stars are always welcome. For bugs and feature requests, [please create an issue](https://github.com/azu/textlint-rule-preset-js-function/issues). 1. Fork it! 2. Create your feature branch: `git checkout -b my-new-feature` 3. Commit your changes: `git commit -am 'Add some feature'` 4. Push to the branch: `git push origin my-new-feature` 5. Submit a pull request :D ## Author - [github/azu](https://github.com/azu) - [twitter/azu_re](https://twitter.com/azu_re) ## License MIT © azu