-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy patheslint.config.js
42 lines (40 loc) · 897 Bytes
/
eslint.config.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
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
import json from "eslint-plugin-json";
import markdownlint from 'eslint-plugin-markdownlint';
import markdownlintParser from 'eslint-plugin-markdownlint/parser.js';
const markdownLintConfig = {
languageOptions: {
parser: markdownlintParser
},
plugins: { markdownlint },
rules: {
...markdownlint.configs.recommended.rules,
'markdownlint/md013': [2, {
line_length: 180,
code_blocks: false,
tables: false,
}],
'markdownlint/md024': [2, {
siblings_only: true,
}]
},
}
export default [
{
files: ['**/*.md'],
...markdownLintConfig,
},
{
files: ["**/CHANGELOG.md"],
...markdownLintConfig,
rules: {
...markdownLintConfig.rules,
'markdownlint/md024': 0
},
},
{
files: ['**/*.json'],
plugins: { json },
processor: json.processors['.json'],
rules: json.configs.recommended.rules,
}
];