https://github.com/textlint-rule/textlint-rule-max-number-of-lines
textlint rule for linting number of lines.
https://github.com/textlint-rule/textlint-rule-max-number-of-lines
Last synced: 4 months ago
JSON representation
textlint rule for linting number of lines.
- Host: GitHub
- URL: https://github.com/textlint-rule/textlint-rule-max-number-of-lines
- Owner: textlint-rule
- License: mit
- Created: 2015-10-02T12:56:04.000Z (over 9 years ago)
- Default Branch: master
- Last Pushed: 2022-06-07T12:23:02.000Z (about 3 years ago)
- Last Synced: 2025-02-14T10:05:37.485Z (4 months ago)
- Language: JavaScript
- Size: 8.79 KB
- Stars: 1
- Watchers: 3
- Forks: 2
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# textlint-rule-max-number-of-lines
[textlint](https://github.com/azu/textlint "textlint") rule that lint number of lines.
If over the line numbers in a document, report it as error.
## Installation
npm install textlint-rule-max-number-of-lines
## Usage
$ 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).## Configuration
Add config to `.textlintrc`
- `max`
- default: 300```json
{
"rules": {
"max-number-of-lines": {
"max" : 300
}
}
}
```## Tests
npm test
## 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