textlint rule that lint number of lines.
If over the line numbers in a document, report it as error.
npm install textlint-rule-max-number-of-lines
$ npm install textlint textlint-rule-max-number-of-lines
$ textlint --rule textlint-rule-max-number-of-lines README.md
# Document is too long(number of lines: 679).
Add config to .textlintrc
max
- default: 300
{
"rules": {
"max-number-of-lines": {
"max" : 300
}
}
}
npm test
- 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