-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.textlintrc
71 lines (71 loc) · 2.3 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
60
61
62
63
64
65
66
67
68
69
70
71
{
"filters": {},
"rules": {
"no-dropping-the-ra": true,
"no-nfd": true,
"@textlint-rule/no-invalid-control-character": true,
"no-zero-width-spaces": true,
"no-kangxi-radicals": true,
"no-double-negative-ja": true,
"ja-no-abusage": true,
"ja-unnatural-alphabet": true,
// 箇条書きには。を付けない
"period-in-list-item": {
"periodMark": ""
},
// JTF日本語標準スタイルガイド
"preset-jtf-style": true,
"preset-ja-technical-writing": {
"ja-no-redundant-expression": {
"dictOptions": {
// "すること[助詞]できる"
// https://github.com/textlint-ja/textlint-rule-ja-no-redundant-expression#dict2
"dict2": {
"disabled": true
}
}
},
// 感嘆符!!、感嘆符??はOKにする
"no-exclamation-question-mark": false,
// 1文の長さは100文字以下とする
"sentence-length": {
"max": 100,
"exclusionPatterns": [
// 文末の(...)。はカウントしない
"/(.*?)。$/",
"/\(http:\/\/.*\)/",
"/\(https:\/\/.*\)/"
]
},
// カンマは1文中に3つまで
"max-comma": {
max: 3
},
// 「ですます調」、「である調」を統一します
"no-mix-dearu-desumasu": {
"preferInHeader": "",
"preferInBody": "ですます",
"preferInList": "である",
"strict": true
},
// 文末の句点記号として「。」を使います
"ja-no-mixed-period": {
"periodMark": "。"
},
// 二重否定は使用しない
"no-double-negative-ja": true,
// 逆接の接続助詞「が」を連続して使用しない
"no-doubled-conjunctive-particle-ga": true,
// 弱い日本語表現の利用を使用しない
"ja-no-weak-phrase": true,
// よくある日本語の誤用をチェックする
"ja-no-abusage": true,
// 冗長な表現をチェックする
"ja-no-redundant-expression": true,
// 入力ミスで発生する不自然なアルファベットをチェックする
"ja-unnatural-alphabet": true,
// 対になっていない括弧をチェックする
"no-unmatched-pair": true
}
}
}