-
Notifications
You must be signed in to change notification settings - Fork 3
/
.remarkrc.mjs
32 lines (28 loc) · 1.12 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
import remarkPresetLintConsistent from 'remark-preset-lint-consistent'
import remarkPresetLintRecommended from 'remark-preset-lint-recommended'
import remarkFrontmatter from 'remark-frontmatter';
import remarkLintFrontmatterSchema from 'remark-lint-frontmatter-schema';
import mdxConfig from './mdx.config.mjs'
const { schemas: { labs } } = mdxConfig;
const config = {
settings: {},
plugins: [
remarkPresetLintConsistent,
remarkPresetLintRecommended,
"preset-lint-consistent",
"preset-lint-recommended",
"remark-preset-lint-markdown-style-guide",
"preset-prettier",
["remark-lint-no-empty-url", ["error"]],
["remark-lint-first-heading-level", ["error"]],
["remark-lint-no-emphasis-as-heading", ["error"]],
["remark-lint-blockquote-indentation", ["error"]],
["remark-lint-no-paragraph-content-indent", ["error"]],
["remark-lint-list-item-content-indent", ["error"]],
["remark-lint-list-item-indent", [2, 'space']],
// ["remark-lint-list-item-spacing", ["error"]],
remarkFrontmatter,
[remarkLintFrontmatterSchema, ['error', { embed: labs }]],
]
}
export default config;