generated from TechBooster/ReVIEW-Template
-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy path.textlintrc
59 lines (59 loc) · 1.77 KB
/
.textlintrc
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
{
"rules": {
// ja-technical-writing/xxxというルールを制御する設定
"preset-ja-technical-writing": {
"sentence-length": {
max: 100
},
"max-ten": {
"max": 3
}
},
"prh": {
"rulePaths": [
"./prh.yml"
]
}
},
"plugins": [
"review"
],
"filters": {
// 特定の行ではtextlintを無視するための設定。
// Usage:
// #@#(Re:VIEWのコメント記法)を使ってtextlintを無視したい部分を囲みます。
//
// #@# textlint-disable
//
// textlintを無視したい行。必ず前後に空白行を入れること。
//
// #@# textlint-enable
//
// 詳細は参考リンクで確認してください。
//
// 参考
// https://github.com/textlint/textlint-filter-rule-comments
// https://qiita.com/azu/items/0f8ca9f1fd531d6b2f4b
"comments": {
// enable comment directive
// if comment has the value, then enable textlint rule
"enablingComment": "textlint-enable",
// disable comment directive
// if comment has the value, then disable textlint rule
"disablingComment": "textlint-disable"
},
"whitelist": {
"whitelistConfigPaths": [
"./allow.yml"
]
},
"node-types": {
// reviewプラグインでは、tt命令はTeletypeとしてパースされる。
// TeletypeはNodeタイプが'Inline'としてtextlint本体に解釈される。
// 参考
// https://github.com/orangain/textlint-plugin-review/blob/7d660f45a6a81a3456059ed7dfc598df253a2ca8/src/inline-parsers.js#L32
// https://github.com/orangain/textlint-plugin-review/blob/7d660f45a6a81a3456059ed7dfc598df253a2ca8/src/mapping.js#L49
"nodeTypes": ["Inline"]
}
}
}