1.0.2 • Published 3 years ago
textlint-rule-doubled-spaces v1.0.2
textlint-rule-doubled-spaces
textlint rule for check doubled spaces in sentence.
Example
OK:
Apple Pen
Pen Pineapple Apple PenNG:
Apple Pen
Pen Pineapple Apple PenInstall
Install with npm:
npm install textlint-rule-doubled-spacesUsage
Via .textlintrc(Recommended)
{
"rules": {
"doubled-spaces": true
}
}Via CLI
textlint --rule doubled-spaces README.mdOptions
allow:string[]- word to ignore
- default:
[] - support RegExp string
- e.g.
/RegExp/
- e.g.
{
allow: [
"/RegExp/"
]
}Build
Builds source codes for publish to the lib folder.
You can write ES2015+ source codes in src/ folder.
npm run buildTests
Run test code in test folder.
Test textlint rule by textlint-tester.
npm testAuthor
License
MIT © iwamatsu0430