yo1000 / textlint-rule-ng-word-pattern

textlint rule that check NG word with RegExp support

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

textlint-rule-ng-word-pattern

Forked from https://github.com/KeitaMoromizato/textlint-rule-ng-word.git

textlint rule that check NG word with RegExp support.

Installation

npm install textlint-rule-ng-word-pattern

Usage

Via .textlintrc

{
    "rules": {
        "ng-word-pattern": {
            "words": ["NG", "No Good"]
        }
    }
}
{
    "rules": {
        "ng-word-pattern": {
            "patterns": [{
                "pattern": "NG",
                "flags": "i"
            }, {
                "pattern": "No[\\s]*Good",
                "flags": "i"
            }]
        }
    }
}

Via CLI

textlint --rule ng-word-pattern README.md

Tests

npm test

License

MIT

About

textlint rule that check NG word with RegExp support

License:MIT License


Languages

Language:JavaScript 100.0%