Forked from https://github.com/KeitaMoromizato/textlint-rule-ng-word.git
textlint rule that check NG word with RegExp support.
npm install textlint-rule-ng-word-pattern
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
npm test
MIT