0.1.2 • Published 8 years ago

textlint-rule-chapter-difficulty-stars v0.1.2

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

textlint-rule-chapter-difficulty-stars

Build Status

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
    }
}