forked from Fraser999/docs
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy path.textlintrc.js
More file actions
31 lines (28 loc) · 793 Bytes
/
.textlintrc.js
File metadata and controls
31 lines (28 loc) · 793 Bytes
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
/* eslint-disable import/no-commonjs */
const textlintMode = process.env.TEXTLINT_MODE;
const allRules = {
alex: {
allow: ["color", "hook", "host-hostess", "itch"],
},
"common-misspellings": true,
"en-capitalization": true,
"stop-words": {
exclude: ["relative to", "pick out", "encounter"],
},
terminology: {
defaultTerms: false,
terms: `${__dirname}/.textlint.terms.json`,
},
"write-good": {
passive: true,
severity: "warning",
},
};
const fixableRules = {
"common-misspellings": allRules["common-misspellings"],
"en-capitalization": allRules["en-capitalization"],
terminology: allRules["terminology"],
};
module.exports = {
rules: textlintMode === "fix" ? fixableRules : allRules,
};