textlint-rule-no-desumasu-in-list-item
v1.0.0
Published
textlint rule to detect desumasu-style (polite form) endings in list items
Maintainers
Readme
textlint-rule-no-desumasu-in-list-item
箇条書き(リストアイテム)の文末がですます調になっている箇所を検出するtextlintルールです。 体言止めの使用を促します。
Install
npm install textlint-rule-no-desumasu-in-list-itemUsage
.textlintrc.js:
module.exports = {
rules: {
"no-desumasu-in-list-item": true,
},
};Options
allowPatterns
許可するですます調パターンの配列(正規表現文字列)。
module.exports = {
rules: {
"no-desumasu-in-list-item": {
allowPatterns: ["ください"],
},
},
};Examples
NG
- テストを実行します
- 問題が発生しました。
- 動作しませんOK
- テストの実行
- 問題の発生
- 動作しないDetection Patterns
| Pattern | Example | |-|-| | です | これはテストです | | ます | テストを実行します | | でした | 問題が発生しました | | ました | 問題が発生しました | | ません | 動作しません | | ください | インストールしてください | | ましょう | 確認しましょう | | でしょう | 問題ないでしょう |
License
MIT
