textlint rule is that limit maximum comma(,) count of sentence.
npm install textlint-rule-max-comma
$ 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.
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
}
}
}
npm test
- textlint-rule-max-ten
- Japanese comma(
、
) edition
- Japanese comma(
- 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