textlint-rule-chapter-difficulty-stars
v0.1.2
Published
textlint rule for search ★ in h1, h2headers(#, ##)
Downloads
12
Readme
textlint-rule-chapter-difficulty-stars
this is a linter plugin for japanese text.
このtestlintプラグインはdwango/scala_textのために作成されています。 そのため一般的な文章ルールにはないルールを検査しています。
このtextlint-ruleは次の2つの規則を検査します。
- #(h1), ##(h2)に
★+を含む - ###(h3)より深い見出しに
★+を含まない
Installation
ruleのインストールは以下のように行います。
まずnpmのライブラリとしてインストールを行います。
npm install -D textlint textlint-rule-chapter-difficulty-starsその後、.textlintrcで以下のようにrulesを記述します。
{
"rules": {
"chapter-difficulty-stars": true
}
}