Skip to content

Commit 1c37b50

Browse files
committed
add more retext linters
1 parent 0ab2f40 commit 1c37b50

File tree

3 files changed

+698
-1
lines changed

3 files changed

+698
-1
lines changed

.remarkrc.mjs

Lines changed: 49 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,9 +20,57 @@ export default {
2020
["remark-lint-no-shell-dollars", false],
2121
["remark-lint-maximum-heading-length", 73],
2222
[retext, Parser],
23-
"retext-indefinite-article",
2423
"retext-diacritics",
24+
"retext-indefinite-article",
25+
"retext-redundant-acronyms",
26+
"retext-repeated-words",
27+
"retext-sentence-spacing",
28+
["retext-quotes", { preferred: "straight" }],
29+
["retext-contractions", { straight: true }],
2530
["retext-passive", { ignore: ["read", "set"] }],
31+
["retext-profanities", { ignore: ["execute", "executed", "hook"] }],
32+
[
33+
"retext-simplify",
34+
{
35+
ignore: [
36+
"component",
37+
"implement",
38+
"render",
39+
"function",
40+
"request",
41+
"type",
42+
"immediately",
43+
"observe",
44+
"perform",
45+
// TODO: Reduce this list
46+
"in order to",
47+
"caveat",
48+
"consequently",
49+
"maintain",
50+
"equivalent",
51+
"subsequent",
52+
"similar to",
53+
"e.g.",
54+
"multiple",
55+
"additional",
56+
"represents",
57+
"option",
58+
"notify",
59+
"previous",
60+
"modify",
61+
"very",
62+
],
63+
},
64+
],
65+
[
66+
"retext-equality",
67+
{
68+
noBinary: true,
69+
// TODO: Reduce this list
70+
ignore: ["primitive", "just", "easy", "easily", "straightforward", "invalid", "obvious"],
71+
},
72+
],
73+
// TODO: Lower this threshold to 5 / 7
2674
["retext-readability", { threshold: 6 / 7 }],
2775
[
2876
"retext-spell",

0 commit comments

Comments
 (0)