Skip to content

Commit 5b74efb

Browse files
Add ruleset for JSON and markdown
1 parent 54d19ab commit 5b74efb

File tree

6 files changed

+1385
-118
lines changed

6 files changed

+1385
-118
lines changed

configs/json.js

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
import json from '@eslint/json'
2+
import dataportGeodev from '../rules/index.js'
3+
4+
export default [
5+
{
6+
plugins: {
7+
json,
8+
},
9+
language: 'json/json',
10+
...json.configs.recommended,
11+
},
12+
{
13+
plugins: {
14+
'dataport-geodev': dataportGeodev,
15+
},
16+
rules: {
17+
'json/top-level-interop': 'error',
18+
'dataport-geodev/json-indent': 'error',
19+
},
20+
},
21+
]

configs/markdown.js

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
import markdown from '@eslint/markdown'
2+
3+
export default [
4+
{
5+
plugins: {
6+
markdown,
7+
},
8+
language: 'json/json',
9+
},
10+
...markdown.configs.recommended,
11+
{
12+
rules: {
13+
'markdown/no-missing-label-refs': 'off',
14+
},
15+
},
16+
]

0 commit comments

Comments
 (0)