forked from remarkjs/remark-lint
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.remarkrc.js
25 lines (22 loc) · 857 Bytes
/
.remarkrc.js
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
import remarkPresetLintRecommended from './packages/remark-preset-lint-recommended/index.js'
import remarkPresetLintConsistent from './packages/remark-preset-lint-consistent/index.js'
import remarkToc from 'remark-toc'
import remarkCommentConfig from 'remark-comment-config'
import remarkGfm from 'remark-gfm'
import remarkGithub from 'remark-github'
import remarkValidateLinks from 'remark-validate-links'
import listOfPresets from './script/plugin/list-of-presets.js'
import listOfRules from './script/plugin/list-of-rules.js'
const plugins = [
remarkPresetLintRecommended,
remarkPresetLintConsistent,
[remarkToc, {tight: true, maxDepth: 3, heading: 'contents'}],
remarkCommentConfig,
[remarkGfm, {tablePipeAlign: false}],
remarkGithub,
remarkValidateLinks,
listOfPresets,
listOfRules
]
const preset = {plugins}
export default preset