-
Notifications
You must be signed in to change notification settings - Fork 319
/
.textlintrc
93 lines (88 loc) · 2.53 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
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
{
"rules": {
"terminology": {
"defaultTerms": false,
"skip": ["Blockquote", "Header", "Link", "Emphasis", "Strong"],
"terms": [
// Brands
"Browsersync",
"ESLint",
"JavaScript",
"Lodash",
"Markdown",
"UglifyJS",
"Sass",
"Stylelint",
"CSSLint",
"Internet Explorer",
["Node[ .]js", "Node"], // Official is Node.js, but it's way too complicated
["React[ .]js", "React"],
["a npm", "an npm"],
"npm",
"pull request",
["MacOS", "macOS"],
["uglify", "UglifyJS"],
["sourcemap", "sourcemap"],
["sourcemaps", "source maps"],
["environemnt", "environment"],
["some", ""],
["filetype", "file type"],
["stylesheet", "style sheet"],
["like this", ""],
["probably", ""],
["known as", ""],
["really", ""],
["just", ""],
["simple", ""],
["obvious", ""],
["straightforward", ""],
["very", ""],
["a little", ""],
["note that", ""],
["good to note", ""],
["good to remember", ""],
["basically", ""],
["actually", ""],
["pretty", ""],
["easy", ""],
["interesting", ""],
["way to", ""],
["In order to", "To"],
["in order to", "to"],
["might", ""],
["us", ""],
["I'll", ""],
["they'll", ""],
// ["it is", "it's"], // Too strict
// ["It is", "It's"], // Too strict
// ["I", ""], // This should be skipped for foreword/preface
// ["may", ""], // This should be a warning
"pre-release",
// ECMAScript
"ECMAScript",
// ["ES2015", "ES6"],
// ["ES7", "ES2016"],
// Words and phrases
["back[- ]end(\\w*)", "backend$1"],
["front[- ]end(\\w*)", "frontend$1"],
["hot[- ]key", "hotkey"],
["build system(s?)", "build tool$1"],
["CLI tool(s?)", "command line tool$1"],
["web[- ]?site(s?)", "site$1"],
["repo\\b", "repository"],
["style-?guide(s?)", "style guide$1"],
["change-?log(s?)", "change log$1"],
// Starts from a lower case letter in the middle of a sentence
["(\\w+[^.?!]\\)? )stylelint", "$1stylelint"],
// ["(\\w+[^.?!]\\)? )webpack", "$1webpack"]
]
},
"common-misspellings": true,
"write-good": {
"adverb": false,
"passive": false,
"tooWordy": false,
"weasel": false
}
}
}