Skip to content

yo1000/textlint-rule-ng-word-pattern

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

12 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

Topics

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • JavaScript 100.0%