textlint rule for check doubled spaces in sentence.
OK:
Apple Pen
Pen Pineapple Apple Pen
NG:
Apple Pen
Pen Pineapple Apple Pen
Install with npm:
npm install textlint-rule-doubled-spaces
Via .textlintrc
(Recommended)
{
"rules": {
"doubled-spaces": true
}
}
Via CLI
textlint --rule doubled-spaces README.md
allow
:string[]
- word to ignore
- default:
[]
- support RegExp string
- e.g.
/RegExp/
- e.g.
{
allow: [
"/RegExp/"
]
}
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
MIT © iwamatsu0430