-
Notifications
You must be signed in to change notification settings - Fork 5
/
.remarkrc.mjs
35 lines (31 loc) · 1 KB
/
.remarkrc.mjs
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
/* eslint-env node */
import { unified } from "unified";
import remarkRetext from "remark-retext";
import retextLatin from "retext-latin";
import retextRepeatedWords from "retext-repeated-words";
import retextSyntaxUrls from "retext-syntax-urls";
import retextSpell from "retext-spell";
import dictionaryFr from "dictionary-fr";
import { readFileSync } from 'fs';
const remarkConfig = {
plugins: [
[
remarkRetext,
unified()
.use(retextLatin)
.use(retextRepeatedWords)
.use(retextSyntaxUrls)
.use(retextSpell, {
dictionary: dictionaryFr,
personal: readFileSync("./.local.dic"),
}),
],
"remark-preset-lint-consistent",
"remark-preset-lint-recommended",
["remark-lint-list-item-indent", "space"],
["remark-lint-list-item-bullet-indent", false],
["remark-lint-code-block-style", false],
["remark-message-control", { name: 'spell', source: ['retext-spell', 'retext-repeated-words'] }],
]
};
export default remarkConfig;