-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy patheslint.config.js
41 lines (41 loc) · 1.03 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
import js from '@eslint/js'
import eslintPluginVue from 'eslint-plugin-vue'
import ts from 'typescript-eslint'
import eslintConfigPrettier from 'eslint-config-prettier'
export default ts.config(
js.configs.recommended,
...ts.configs.recommended,
{
rules: {
'@typescript-eslint/no-explicit-any': 'off',
'@typescript-eslint/no-unused-vars': [
'warn',
{
ignoreRestSiblings: true
}
],
'@typescript-eslint/no-unused-expressions': ['error', { allowTernary: true }]
}
},
// @ts-expect-error - eslintPluginVue is not typed
...eslintPluginVue.configs['flat/essential'],
{
languageOptions: {
parserOptions: {
parser: ts.parser,
sourceType: 'module'
}
},
rules: {
'vue/component-tags-order': [
'error',
{
order: ['template', 'script', 'style']
}
],
'vue/no-unused-vars': ['error', { ignorePattern: '^_' }]
},
ignores: ['dist', 'node_modules', '*.d.ts']
},
eslintConfigPrettier
)