@@ -4,107 +4,89 @@ const presetJaSpacing = moduleInterop(require("textlint-rule-preset-ja-spacing")
4
4
5
5
module . exports = {
6
6
rules : {
7
- '1.1.1.本文' : presetJtfStyle [ '1.1.1.本文' ] ,
8
- '1.1.2.見出し' : presetJtfStyle [ '1.1.2.見出し' ] ,
9
- '1.1.5.図表のキャプション' : presetJtfStyle [ '1.1.5.図表のキャプション' ] ,
10
- '1.2.1.句点(。)と読点(、)' : presetJtfStyle [ '1.2.1.句点(。)と読点(、)' ] ,
11
- '1.2.2.ピリオド(.)とカンマ(,)' :
12
- presetJtfStyle [ '1.2.2.ピリオド(.)とカンマ(,)' ] ,
13
- '2.1.2.漢字' : presetJtfStyle [ '2.1.2.漢字' ] ,
14
- '2.1.8.算用数字' : presetJtfStyle [ '2.1.8.算用数字' ] ,
15
- '2.1.9.アルファベット' : presetJtfStyle [ '2.1.9.アルファベット' ] ,
16
- '2.1.10.算用数字の位取りの表記' :
17
- presetJtfStyle [ '2.1.10.算用数字の位取りの表記' ] ,
18
- '2.2.1.ひらがなと漢字の使い分け' :
19
- presetJtfStyle [ '2.2.1.ひらがなと漢字の使い分け' ] ,
20
- '2.2.2.算用数字と漢数字の使い分け' :
21
- presetJtfStyle [ '2.2.2.算用数字と漢数字の使い分け' ] ,
22
- '2.2.3.一部の助数詞の表記' : presetJtfStyle [ '2.2.3.一部の助数詞の表記' ] ,
23
- '3.2.カタカナ語間のスペースの有無' :
24
- presetJtfStyle [ '3.2.カタカナ語間のスペースの有無' ] ,
25
- '3.3.かっこ類と隣接する文字の間のスペースの有無' :
26
- presetJtfStyle [ '3.3.かっこ類と隣接する文字の間のスペースの有無' ] ,
27
- '4.1.1.句点(。)' : presetJtfStyle [ '4.1.1.句点(。)' ] ,
28
- '4.1.3.ピリオド(.)、カンマ(,)' :
29
- presetJtfStyle [ '4.1.3.ピリオド(.)、カンマ(,)' ] ,
30
- '4.2.1.感嘆符(!)' : presetJtfStyle [ '4.2.1.感嘆符(!)' ] ,
31
- '4.2.2.疑問符(?)' : presetJtfStyle [ '4.2.2.疑問符(?)' ] ,
32
- '4.2.4.中黒(・)' : presetJtfStyle [ '4.2.4.中黒(・)' ] ,
33
- '4.2.5.波線(〜)' : presetJtfStyle [ '4.2.5.波線(〜)' ] ,
34
- '4.2.8.セミコロン(;)' : presetJtfStyle [ '4.2.8.セミコロン(;)' ] ,
35
- '4.2.9.ダッシュ(-)' : presetJtfStyle [ '4.2.9.ダッシュ(-)' ] ,
36
- '4.3.1.丸かっこ()' : presetJtfStyle [ '4.3.1.丸かっこ()' ] ,
37
- '4.3.3.かぎかっこ「」' : presetJtfStyle [ '4.3.3.かぎかっこ「」' ] ,
38
- '4.3.4.二重かぎかっこ『』' : presetJtfStyle [ '4.3.4.二重かぎかっこ『』' ] ,
39
- '4.3.5.二重引用符' : presetJtfStyle [ '4.3.5.二重引用符' ] ,
40
- '4.3.6.中かっこ{ }' : presetJtfStyle [ '4.3.6.中かっこ{ }' ] ,
41
- '4.3.7.山かっこ<>' : presetJtfStyle [ '4.3.7.山かっこ<>' ] ,
42
- '4.3.8.一重引用符' : presetJtfStyle [ '4.3.8.一重引用符' ] ,
43
- 'ja-no-space-around-parentheses' :
44
- presetJaSpacing [ 'ja-no-space-around-parentheses' ] ,
45
- 'ja-no-space-between-full-width' :
46
- presetJaSpacing [ 'ja-no-space-between-full-width' ] ,
47
- 'ja-space-between-half-and-full-width' :
48
- presetJaSpacing [ 'ja-space-between-half-and-full-width' ] ,
49
- 'ja-space-around-code' : presetJaSpacing [ 'ja-space-around-code' ] ,
50
- 'no-mix-dearu-desumasu' : moduleInterop (
51
- require ( 'textlint-rule-no-mix-dearu-desumasu' )
52
- ) ,
53
- 'no-nfd' : moduleInterop ( require ( 'textlint-rule-no-nfd' ) ) ,
54
- 'no-invalid-control-character' : moduleInterop (
55
- require ( '@textlint-rule/textlint-rule-no-invalid-control-character' )
56
- ) ,
57
- 'no-zero-width-spaces' : moduleInterop (
58
- require ( 'textlint-rule-no-zero-width-spaces' )
59
- ) ,
7
+ "1.1.1.本文" : presetJtfStyle [ "1.1.1.本文" ] ,
8
+ "1.1.2.見出し" : presetJtfStyle [ "1.1.2.見出し" ] ,
9
+ "1.1.5.図表のキャプション" : presetJtfStyle [ "1.1.5.図表のキャプション" ] ,
10
+ "1.2.1.句点(。)と読点(、)" : presetJtfStyle [ "1.2.1.句点(。)と読点(、)" ] ,
11
+ "1.2.2.ピリオド(.)とカンマ(,)" : presetJtfStyle [ "1.2.2.ピリオド(.)とカンマ(,)" ] ,
12
+ "2.1.2.漢字" : presetJtfStyle [ "2.1.2.漢字" ] ,
13
+ "2.1.8.算用数字" : presetJtfStyle [ "2.1.8.算用数字" ] ,
14
+ "2.1.9.アルファベット" : presetJtfStyle [ "2.1.9.アルファベット" ] ,
15
+ "2.1.10.算用数字の位取りの表記" : presetJtfStyle [ "2.1.10.算用数字の位取りの表記" ] ,
16
+ "2.2.1.ひらがなと漢字の使い分け" : presetJtfStyle [ "2.2.1.ひらがなと漢字の使い分け" ] ,
17
+ "2.2.2.算用数字と漢数字の使い分け" : presetJtfStyle [ "2.2.2.算用数字と漢数字の使い分け" ] ,
18
+ "2.2.3.一部の助数詞の表記" : presetJtfStyle [ "2.2.3.一部の助数詞の表記" ] ,
19
+ "3.2.カタカナ語間のスペースの有無" : presetJtfStyle [ "3.2.カタカナ語間のスペースの有無" ] ,
20
+ "3.3.かっこ類と隣接する文字の間のスペースの有無" : presetJtfStyle [ "3.3.かっこ類と隣接する文字の間のスペースの有無" ] ,
21
+ "4.1.1.句点(。)" : presetJtfStyle [ "4.1.1.句点(。)" ] ,
22
+ "4.1.3.ピリオド(.)、カンマ(,)" : presetJtfStyle [ "4.1.3.ピリオド(.)、カンマ(,)" ] ,
23
+ "4.2.1.感嘆符(!)" : presetJtfStyle [ "4.2.1.感嘆符(!)" ] ,
24
+ "4.2.2.疑問符(?)" : presetJtfStyle [ "4.2.2.疑問符(?)" ] ,
25
+ "4.2.4.中黒(・)" : presetJtfStyle [ "4.2.4.中黒(・)" ] ,
26
+ "4.2.5.波線(〜)" : presetJtfStyle [ "4.2.5.波線(〜)" ] ,
27
+ "4.2.8.セミコロン(;)" : presetJtfStyle [ "4.2.8.セミコロン(;)" ] ,
28
+ "4.2.9.ダッシュ(-)" : presetJtfStyle [ "4.2.9.ダッシュ(-)" ] ,
29
+ "4.3.3.かぎかっこ「」" : presetJtfStyle [ "4.3.3.かぎかっこ「」" ] ,
30
+ "4.3.4.二重かぎかっこ『』" : presetJtfStyle [ "4.3.4.二重かぎかっこ『』" ] ,
31
+ "4.3.5.二重引用符" : presetJtfStyle [ "4.3.5.二重引用符" ] ,
32
+ "4.3.6.中かっこ{ }" : presetJtfStyle [ "4.3.6.中かっこ{ }" ] ,
33
+ "4.3.7.山かっこ<>" : presetJtfStyle [ "4.3.7.山かっこ<>" ] ,
34
+ "4.3.8.一重引用符" : presetJtfStyle [ "4.3.8.一重引用符" ] ,
35
+ "ja-no-space-around-parentheses" : presetJaSpacing [ "ja-no-space-around-parentheses" ] ,
36
+ "ja-no-space-between-full-width" : presetJaSpacing [ "ja-no-space-between-full-width" ] ,
37
+ "ja-space-between-half-and-full-width" : presetJaSpacing [ "ja-space-between-half-and-full-width" ] ,
38
+ "ja-space-around-code" : presetJaSpacing [ "ja-space-around-code" ] ,
39
+ "no-mix-dearu-desumasu" : moduleInterop ( require ( "textlint-rule-no-mix-dearu-desumasu" ) ) ,
40
+ "no-nfd" : moduleInterop ( require ( "textlint-rule-no-nfd" ) ) ,
41
+ "no-invalid-control-character" : moduleInterop ( require ( "@textlint-rule/textlint-rule-no-invalid-control-character" ) ) ,
42
+ "no-zero-width-spaces" : moduleInterop ( require ( "textlint-rule-no-zero-width-spaces" ) )
60
43
} ,
61
44
rulesConfig : {
62
- '1.1.1.本文' : true ,
63
- '1.1.2.見出し' : true ,
64
- '1.1.5.図表のキャプション' : true ,
65
- '1.2.1.句点(。)と読点(、)' : true ,
66
- '1.2.2.ピリオド(.)とカンマ(,)' : true ,
67
- '2.1.2.漢字' : false ,
68
- '2.1.8.算用数字' : true ,
69
- '2.1.9.アルファベット' : true ,
70
- '2.1.10.算用数字の位取りの表記' : true ,
71
- '2.2.1.ひらがなと漢字の使い分け' : false ,
72
- '2.2.2.算用数字と漢数字の使い分け' : true ,
73
- '2.2.3.一部の助数詞の表記' : true ,
74
- '3.2.カタカナ語間のスペースの有無' : true ,
75
- '3.3.かっこ類と隣接する文字の間のスペースの有無' : true ,
76
- '4.1.1.句点(。)' : true ,
77
- '4.1.3.ピリオド(.)、カンマ(,)' : true ,
78
- '4.2.1.感嘆符(!)' : true ,
79
- '4.2.2.疑問符(?)' : true ,
80
- '4.2.4.中黒(・)' : true ,
81
- '4.2.5.波線(〜)' : true ,
82
- '4.2.8.セミコロン(;)' : true ,
83
- '4.2.9.ダッシュ(-)' : true ,
84
- '4.3.1.丸かっこ()' : false ,
85
- '4.3.3.かぎかっこ「」' : true ,
86
- '4.3.4.二重かぎかっこ『』' : true ,
87
- '4.3.5.二重引用符' : true ,
88
- '4.3.6.中かっこ{ }' : true ,
89
- '4.3.7.山かっこ<>' : true ,
90
- '4.3.8.一重引用符' : true ,
91
- 'ja-no-space-around-parentheses' : true ,
92
- 'ja-no-space-between-full-width' : true ,
93
- 'ja-space-between-half-and-full-width' : {
94
- space : 'always' ,
45
+ "1.1.1.本文" : true ,
46
+ "1.1.2.見出し" : true ,
47
+ "1.1.5.図表のキャプション" : true ,
48
+ "1.2.1.句点(。)と読点(、)" : true ,
49
+ "1.2.2.ピリオド(.)とカンマ(,)" : true ,
50
+ "2.1.2.漢字" : false ,
51
+ "2.1.8.算用数字" : true ,
52
+ "2.1.9.アルファベット" : true ,
53
+ "2.1.10.算用数字の位取りの表記" : true ,
54
+ "2.2.1.ひらがなと漢字の使い分け" : false ,
55
+ "2.2.2.算用数字と漢数字の使い分け" : true ,
56
+ "2.2.3.一部の助数詞の表記" : true ,
57
+ "3.2.カタカナ語間のスペースの有無" : true ,
58
+ "3.3.かっこ類と隣接する文字の間のスペースの有無" : true ,
59
+ "4.1.1.句点(。)" : true ,
60
+ "4.1.3.ピリオド(.)、カンマ(,)" : true ,
61
+ "4.2.1.感嘆符(!)" : true ,
62
+ "4.2.2.疑問符(?)" : true ,
63
+ "4.2.4.中黒(・)" : true ,
64
+ "4.2.5.波線(〜)" : true ,
65
+ "4.2.8.セミコロン(;)" : true ,
66
+ "4.2.9.ダッシュ(-)" : true ,
67
+ "4.3.3.かぎかっこ「」" : true ,
68
+ "4.3.4.二重かぎかっこ『』" : true ,
69
+ "4.3.5.二重引用符" : true ,
70
+ "4.3.6.中かっこ{ }" : true ,
71
+ "4.3.7.山かっこ<>" : true ,
72
+ "4.3.8.一重引用符" : true ,
73
+ "ja-no-space-around-parentheses" : true ,
74
+ "ja-no-space-between-full-width" : true ,
75
+ "ja-space-between-half-and-full-width" : {
76
+ "space" : "always"
95
77
} ,
96
- ' ja-space-around-code' : {
97
- before : true ,
98
- after : true ,
78
+ " ja-space-around-code" : {
79
+ " before" : true ,
80
+ " after" : true
99
81
} ,
100
- ' no-mix-dearu-desumasu' : {
101
- preferInHeader : '' ,
102
- preferInBody : ' ですます' ,
103
- preferInList : ' ですます' ,
104
- strict : true ,
82
+ " no-mix-dearu-desumasu" : {
83
+ " preferInHeader" : "" ,
84
+ " preferInBody" : " ですます" ,
85
+ " preferInList" : " ですます" ,
86
+ " strict" : true
105
87
} ,
106
- ' no-nfd' : true ,
107
- ' no-invalid-control-character' : true ,
108
- ' no-zero-width-spaces' : true ,
109
- } ,
110
- }
88
+ " no-nfd" : true ,
89
+ " no-invalid-control-character" : true ,
90
+ " no-zero-width-spaces" : true
91
+ }
92
+ } ;
0 commit comments