textlint-rule-max-comma
v4.0.0
Published
textlint rule that limit maxinum comma(,) count of sentence.
Downloads
90,360
Readme
textlint-rule-max-comma
textlint rule is that limit maximum comma(,) count of sentence.
Installation
npm install textlint-rule-max-comma
Usage
$ npm install -D textlint textlint-rule-max-comma
$ npx textlint --rule max-comma README.md
# 11:0 error This sentence exceeds the maximum count of comma. Maximum is 4.
Options
max
: maximum number of,
- Default:
4
- It means that report an error if the sentence include 5 or more
,
- Default:
Configure "max"
value of the .textlintrc
file.
{
"rules": {
"max-comma": {
"max" : 4
}
}
}
Tests
npm test
Related
- textlint-rule-max-ten
- Japanese comma(
、
) edition
- Japanese comma(
Contributing
- 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
License
MIT