textlint-rule-doubled-spaces

1.0.2 • Public • Published

textlint-rule-doubled-spaces

Node.js CI npm version textlint rule

textlint rule for check doubled spaces in sentence.

Example

OK:

Apple Pen
Pen Pineapple Apple Pen

NG:

Apple  Pen
Pen  Pineapple   Apple  Pen

Install

Install with npm:

npm install textlint-rule-doubled-spaces

Usage

Via .textlintrc(Recommended)

{
    "rules": {
        "doubled-spaces": true
    }
}

Via CLI

textlint --rule doubled-spaces README.md

Options

  • allow: string[]
    • word to ignore
    • default: []
    • support RegExp string
      • e.g. /RegExp/
{
  allow: [
    "/RegExp/"
  ]
}

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

Author

License

MIT © iwamatsu0430

Readme

Keywords

Package Sidebar

Install

npm i textlint-rule-doubled-spaces

Weekly Downloads

447

Version

1.0.2

License

MIT

Unpacked Size

8.32 kB

Total Files

6

Last publish

Collaborators

  • iwamatsu0430