Skip to content

Commit 50ae4d3

Browse files
committed
chore: update textlint config
Signed-off-by: prisis <[email protected]>
1 parent 9ffbaae commit 50ae4d3

File tree

1 file changed

+123
-138
lines changed

1 file changed

+123
-138
lines changed

.textlintrc

+123-138
Original file line numberDiff line numberDiff line change
@@ -1,151 +1,136 @@
11
{
2-
"@textlint/markdown": {
3-
"extensions": [
4-
".md",
5-
".mdx"
6-
]
7-
},
8-
"filters": {
9-
"comments": true
10-
},
11-
"rules": {
12-
"en-capitalization": true,
13-
"footnote-order": true,
14-
"no-todo": true,
15-
"no-dead-link": {
16-
"ignore": [
17-
"bc_data_*",
18-
]
2+
"@textlint/markdown": {
3+
"extensions": [".md", ".mdx"]
194
},
20-
"no-empty-section": true,
21-
"terminology": true,
22-
"apostrophe": true,
23-
"diacritics": true,
24-
"@textlint-rule/no-invalid-control-character": true,
25-
"@textlint-rule/no-unmatched-pair": true,
26-
"abbr-within-parentheses": true,
27-
"alex": {
28-
"allow": [
29-
"period",
30-
"european",
31-
"failure",
32-
"fore",
33-
"attack",
34-
"execution",
35-
"executed",
36-
"remain",
37-
"execute"
38-
]
5+
"filters": {
6+
"comments": true
397
},
40-
"@textlint-rule/preset-google": true,
41-
"write-good": {
42-
"passive": false,
43-
"eprime": false,
44-
},
45-
"common-misspellings": true,
46-
"terminology": {
47-
"defaultTerms": false,
48-
"terms": [
49-
// Abbreviations
50-
"API",
51-
["API['’]?s", "APIs"],
52-
"Ajax",
53-
"CLI",
54-
"CSS",
55-
"CORS",
56-
["^E2E", "E2E"],
57-
"gif",
58-
["^HTML", "HTML"],
59-
["^URL(s?)", "URL$1"],
60-
["^HTTP", "HTTP"],
61-
["^HTTPS", "HTTPS"],
62-
"SSO",
63-
["^XHR(s?)", "XHR$1"],
64-
["^XHR['’]?s", "XHRs"],
65-
"Xvfb",
66-
"YAML",
8+
"rules": {
9+
"en-capitalization": true,
10+
"footnote-order": true,
11+
"no-todo": true,
12+
"no-dead-link": {
13+
"ignore": ["bc_data_*"]
14+
},
15+
"no-empty-section": true,
16+
"terminology": true,
17+
"apostrophe": true,
18+
"diacritics": true,
19+
"@textlint-rule/no-invalid-control-character": true,
20+
"@textlint-rule/no-unmatched-pair": true,
21+
"abbr-within-parentheses": true,
22+
"alex": {
23+
"allow": ["period", "european", "failure", "fore", "attack", "execution", "executed", "remain", "execute"]
24+
},
25+
"@textlint-rule/preset-google": true,
26+
"write-good": {
27+
"passive": false,
28+
"eprime": false
29+
},
30+
"common-misspellings": true,
31+
"terminology": {
32+
"defaultTerms": false,
33+
"terms": [
34+
// Abbreviations
35+
"API",
36+
["API['’]?s", "APIs"],
37+
"Ajax",
38+
"CLI",
39+
"CSS",
40+
"CORS",
41+
["^E2E", "E2E"],
42+
"gif",
43+
["^HTML", "HTML"],
44+
["^URL(s?)", "URL$1"],
45+
["^HTTP", "HTTP"],
46+
["^HTTPS", "HTTPS"],
47+
"SSO",
48+
["^XHR(s?)", "XHR$1"],
49+
["^XHR['’]?s", "XHRs"],
50+
"Xvfb",
51+
"YAML",
6752

68-
// Words and phrases
69-
["\\(s\\)he", "they"],
70-
["he or she", "they"],
71-
["he/she", "they"],
72-
["crazy", "complex"],
73-
["crazier", "more complex"],
74-
["craziest", "most complex"],
75-
["dumb", "unintended"],
76-
["insane", "outrageous"],
53+
// Words and phrases
54+
["\\(s\\)he", "they"],
55+
["he or she", "they"],
56+
["he/she", "they"],
57+
["crazy", "complex"],
58+
["crazier", "more complex"],
59+
["craziest", "most complex"],
60+
["dumb", "unintended"],
61+
["insane", "outrageous"],
7762

78-
// Prefer American spelling
79-
["behaviour", "behavior"],
80-
["cancelled", "canceled"],
81-
["cancelling", "canceling"],
82-
["centre", "center"],
83-
["colour", "color"],
84-
["customise", "customize"],
85-
["customisation", "customization"],
86-
["favourite", "favorite"],
87-
["labelled", "labeled"],
88-
["licence", "license"],
89-
["organise", "organize"],
63+
// Prefer American spelling
64+
["behaviour", "behavior"],
65+
["cancelled", "canceled"],
66+
["cancelling", "canceling"],
67+
["centre", "center"],
68+
["colour", "color"],
69+
["customise", "customize"],
70+
["customisation", "customization"],
71+
["favourite", "favorite"],
72+
["labelled", "labeled"],
73+
["licence", "license"],
74+
["organise", "organize"],
9075

91-
// Common misspellings
92-
["gaurantee", "guarantee"],
76+
// Common misspellings
77+
["gaurantee", "guarantee"],
9378

94-
// Words we would like to not use altogether
95-
["simply", ""],
79+
// Words we would like to not use altogether
80+
["simply", ""],
9681

97-
// Single word
98-
["change[- ]log(s?)", "changelog$1"],
99-
["code[- ]base(es?)", "codebase$1"],
100-
["e[- ]mail(s?)", "email$1"],
101-
["end[- ]point(s?)", "endpoint$1"],
102-
["file[- ]name(s?)", "filename$1"],
103-
["can[- ]not", "cannot$1"],
82+
// Single word
83+
["change[- ]log(s?)", "changelog$1"],
84+
["code[- ]base(es?)", "codebase$1"],
85+
["e[- ]mail(s?)", "email$1"],
86+
["end[- ]point(s?)", "endpoint$1"],
87+
["file[- ]name(s?)", "filename$1"],
88+
["can[- ]not", "cannot$1"],
10489

105-
// Multiple words
106-
["back-?end(s?)", "back end$1"],
107-
["front-?end(s?)", "front end$1"],
108-
["full-?stack(s?)", "full stack$1"],
109-
["open-?source(ed?)", "open source$1"],
110-
["web-?page(s?)", "web page$1"],
90+
// Multiple words
91+
["back-?end(s?)", "back end$1"],
92+
["front-?end(s?)", "front end$1"],
93+
["full-?stack(s?)", "full stack$1"],
94+
["open-?source(ed?)", "open source$1"],
95+
["web-?page(s?)", "web page$1"],
11196

112-
// Hyphenated
113-
["end ?to ?end", "end-to-end"],
114-
["retryability", "retry-ability"],
115-
["retriability", "retry-ability"],
97+
// Hyphenated
98+
["end ?to ?end", "end-to-end"],
99+
["retryability", "retry-ability"],
100+
["retriability", "retry-ability"],
116101

117-
["some", ""],
118-
["filetype", "file type"],
119-
["stylesheet", "style sheet"],
120-
["like this", ""],
121-
["probably", ""],
122-
["known as", ""],
123-
["really", ""],
124-
["just", ""],
125-
["simple", ""],
126-
["obvious", ""],
127-
["straightforward", ""],
128-
["very", ""],
129-
["a little", ""],
130-
["note that", ""],
131-
["good to note", ""],
132-
["good to remember", ""],
133-
["basically", ""],
134-
["actually", ""],
135-
["pretty", ""],
136-
["easy", ""],
137-
["interesting", ""],
138-
["way to", ""],
139-
["In order to", "To"],
140-
["in order to", "to"],
141-
["might", ""],
142-
["us", ""],
143-
["I'll", ""],
144-
["I've", ""],
145-
["they'll", ""],
146-
["it is", "it's"],
147-
["It is", "It's"],
148-
]
102+
["some", ""],
103+
["filetype", "file type"],
104+
["stylesheet", "style sheet"],
105+
["like this", ""],
106+
["probably", ""],
107+
["known as", ""],
108+
["really", ""],
109+
["just", ""],
110+
["simple", ""],
111+
["obvious", ""],
112+
["straightforward", ""],
113+
["very", ""],
114+
["a little", ""],
115+
["note that", ""],
116+
["good to note", ""],
117+
["good to remember", ""],
118+
["basically", ""],
119+
["actually", ""],
120+
["pretty", ""],
121+
["easy", ""],
122+
["interesting", ""],
123+
["way to", ""],
124+
["In order to", "To"],
125+
["in order to", "to"],
126+
["might", ""],
127+
["us", ""],
128+
["I'll", ""],
129+
["I've", ""],
130+
["they'll", ""],
131+
["it is", "it's"],
132+
["It is", "It's"]
133+
]
134+
}
149135
}
150-
}
151136
}

0 commit comments

Comments
 (0)