2021-08-10 18:29:09 +03:00
|
|
|
import remarkPresetLintRecommended from './packages/remark-preset-lint-recommended/index.js'
|
|
|
|
import remarkPresetLintConsistent from './packages/remark-preset-lint-consistent/index.js'
|
2023-11-09 16:45:02 +03:00
|
|
|
import remarkLintListItemIndent from './packages/remark-lint-list-item-indent/index.js'
|
2021-08-10 18:29:09 +03:00
|
|
|
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,
|
2023-11-09 16:45:02 +03:00
|
|
|
// To do: change.
|
|
|
|
[remarkLintListItemIndent, 'tab-size'],
|
2021-12-03 12:06:36 +03:00
|
|
|
[remarkToc, {tight: true, maxDepth: 3, heading: 'contents'}],
|
2021-08-10 18:29:09 +03:00
|
|
|
remarkCommentConfig,
|
|
|
|
[remarkGfm, {tablePipeAlign: false}],
|
|
|
|
remarkGithub,
|
|
|
|
remarkValidateLinks,
|
|
|
|
listOfPresets,
|
|
|
|
listOfRules
|
2018-05-18 13:30:21 +03:00
|
|
|
]
|
2021-08-10 18:29:09 +03:00
|
|
|
|
2023-11-09 16:45:02 +03:00
|
|
|
const preset = {
|
|
|
|
plugins,
|
|
|
|
// To do: change.
|
|
|
|
settings: {listItemIndent: 'tab'}
|
|
|
|
}
|
2021-08-10 18:29:09 +03:00
|
|
|
|
|
|
|
export default preset
|