-
Notifications
You must be signed in to change notification settings - Fork 1
/
eslint.config.js
38 lines (36 loc) · 918 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
import antfu from '@antfu/eslint-config'
import { FlatCompat } from '@eslint/eslintrc'
import perfectionistNatural from 'eslint-plugin-perfectionist/configs/recommended-natural'
const compat = new FlatCompat()
export default antfu(
{
markdown: false,
typescript: true,
},
// sorting various data
perfectionistNatural,
...compat.config({
overrides: [{
extends: ['plugin:markdownlint/recommended'],
files: ['*.md'],
parser: 'eslint-plugin-markdownlint/parser',
rules: {
// no-multiple-blanks
'markdownlint/md012': 'warn',
// line-length
'markdownlint/md013': 'off',
// blanks-around-fences
'markdownlint/md031': ['warn', {
list_items: false,
}],
},
}],
}),
{
rules: {
'import/order': 'off',
'no-console': 'off',
'perfectionist/sort-vue-attributes': 'off',
},
},
)