Install with npm:
npm install textlint-rule-chunk-size
Via .textlintrc.json
(Recommended)
{
"rules": {
"chunk-size": {
"chunkSize": 2000,
"delimiter": "page: "
}
}
}
chunkSize
is the maximum number of characters in a chunk. More than this number will throw a lint error.
delimiter
is the string that separates chunks.
Via CLI
textlint --rule chunk-size README.md
Builds source codes for publish to the lib
folder.
You can write ES2015+ source codes in src/
folder.
npm run build
Run test code in test
folder.
Test textlint rule by textlint-tester.
npm test
ISC ©