-
Notifications
You must be signed in to change notification settings - Fork 15
/
.remarkrc.mjs
32 lines (29 loc) · 1.19 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
import remarkPresetLintConsistent from 'remark-preset-lint-consistent';
import remarkPresetLintMarkdownStyleGuide from 'remark-preset-lint-markdown-style-guide';
import remarkPresetLintRecommended from 'remark-preset-lint-recommended';
import presetPrettier from 'remark-preset-prettier';
import remarkFrontmatter from 'remark-frontmatter';
import remarkLintFrontmatterSchema from 'remark-lint-frontmatter-schema';
/* —————————————————————————————————————————————————————————————————————————— */
const remarkConfig = {
plugins: [
remarkPresetLintConsistent,
remarkPresetLintMarkdownStyleGuide,
remarkPresetLintRecommended,
presetPrettier,
remarkFrontmatter,
/* v————— Use it without settings, with local '$schema' associations only */
// rlFmSchema
/* v————— Or with global schemas associations */
[
remarkLintFrontmatterSchema,
{
schemas: {
/* One schema for many files */
'./doc.schema.yaml': ['**/*.mdx']
}
}
]
]
};
export default remarkConfig;