1.0.0 • Published 2 years ago

textlint-rule-ng-word-pattern v1.0.0

Weekly downloads
-
License
MIT
Repository
github
Last release
2 years ago

textlint-rule-ng-word-pattern

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

textlint rule that check NG word.

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 ?Good",
                "flags": "i"
            }]
        }
    }
}

Via CLI

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

Tests

npm test

License

MIT

1.0.0

2 years ago