Package Exports
- textlint-rule-incremental-headers
This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (textlint-rule-incremental-headers) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.
Readme
textlint-rule-incremental-headers
this is a linter plugin for japanese text.
このtextlint-ruleは次の3つの規則を検査します。
- ページの始まりの見出しは#(h1)から始まる。
- ページの始まり以外の見出しで#(h1)が使われていない。(##, ###,...を利用する。)
- 見出しの深さ(h1, h2, h3など)は必ず1つずつ増加する。(h1, h3のように急に深くならない)
Example
# この文章は
ルールに従っているので
## 問題
## ありません
### すばらしい
ですね
## この文章は
h2から始まっているので
## 問題です
# この文章は
h1を文中で使っているので
# 問題です# この文章は
以下のように
### 突然
#の数が多い(深い)見出しが付いているので
### 問題です
Installation
ruleのインストールは以下のように行います。
まずnpmのライブラリとしてインストールを行います。
npm install -D textlint textlint-rule-incremental-headersその後、.textlintrcで以下のようにrulesを記述します。
{
"rules": {
"incremental-headers": true
}
}