(Translated by https://www.hiragana.jp/)
GitHub - textlint-rule/textlint-rule-max-comma: textlint rule is that limit maximum comma(,) count of sentence.
Skip to content

textlint-rule/textlint-rule-max-comma

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

41 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

textlint-rule-max-comma Actions Status: test

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 ,

Configure "max" value of the .textlintrc file.

{
  "rules": {
    "max-comma": {
      "max" : 4
    }
  }
}

Tests

npm test

Related

Contributing

  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

License

MIT

About

textlint rule is that limit maximum comma(,) count of sentence.

Resources

License

Stars

Watchers

Forks

Packages

No packages published