Skip to content

Lint rules to ensure chunk sizes are small between delimiters

Notifications You must be signed in to change notification settings

hoffination/textlint-rule-chunk-size

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

textlint-rule-chunk-size

Install

Install with npm:

npm install textlint-rule-chunk-size

Usage

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

Build

Builds source codes for publish to the lib folder. You can write ES2015+ source codes in src/ folder.

npm run build

Tests

Run test code in test folder. Test textlint rule by textlint-tester.

npm test

License

ISC ©

About

Lint rules to ensure chunk sizes are small between delimiters

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published