Skip to content
textlint rule is that limit maximum comma(,) count of sentence.
JavaScript
Branch: master
Clone or download
Latest commit 7f0cb2c Aug 30, 2016
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
src fix(rule): fix thrown error Aug 30, 2016
test fix(src): use getSource instaed of textlint-util-to-string Aug 30, 2016
.babelrc feat(rule): implement rule May 1, 2016
.gitignore initial commit May 1, 2016
.travis.yml initial commit May 1, 2016
LICENSE initial commit May 1, 2016
README.md chore(travis): add badge May 1, 2016
package.json 1.0.4 Aug 30, 2016

README.md

textlint-rule-max-comma Build Status

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
$ $(npm bin)/textlint --rule max-comma README.md
#    11:0  error  This sentence exceeds the maximum count of comma. Maximum is 4.

Configure

Configure the maximum number of "," allowed in a sentence. The default is 4

Configure "max" value of the .textlintrc file.

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

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

You can’t perform that action at this time.