-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy patheslint.config.js
59 lines (57 loc) · 1.64 KB
/
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
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
import pluginVue from 'eslint-plugin-vue'
import stylistic from '@stylistic/eslint-plugin'
import tsEslint from 'typescript-eslint'
import typescriptParser from '@typescript-eslint/parser'
import vueParser from 'vue-eslint-parser'
export default [
...pluginVue.configs['flat/recommended'],
...tsEslint.configs['recommended'],
{
ignores: [ 'dist', '**/**.d.ts' ]
},
{
languageOptions: {
parser: vueParser,
parserOptions: {
parser: typescriptParser
}
},
plugins: {
'@stylistic': stylistic
},
rules: {
'vue/require-default-prop': 'off',
'vue/require-explicit-emits': 'off',
'vue/no-deprecated-html-element-is': 'off',
'vue/no-unused-vars': 'warn',
'vue/multi-word-component-names': 'off',
'vue/no-reserved-component-names': 'off',
'@stylistic/array-bracket-spacing': [ 1, 'always' ],
'@stylistic/indent': [ 'error', 2 ],
'@stylistic/object-curly-spacing': [ 1, 'always' ],
'@stylistic/quotes': [ 1, 'single' ],
'@stylistic/quote-props': [ 1, 'consistent-as-needed' ],
'@stylistic/no-trailing-spaces': 'error',
'@typescript-eslint/ban-ts-comment': 'off',
'@typescript-eslint/no-explicit-any': 'off',
'comma-dangle': [ 'error', 'never' ],
'semi': [ 'error', 'never' ],
'no-unused-vars': [
'warn',
{
argsIgnorePattern: '^_',
varsIgnorePattern: '^_',
caughtErrorsIgnorePattern: '^_'
}
],
'vue/max-attributes-per-line': [ 'error', {
singleline: {
max: 4
},
multiline: {
max: 3
}
} ]
}
}
]