-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy patheslint.config.js
More file actions
33 lines (32 loc) 路 938 Bytes
/
Copy patheslint.config.js
File metadata and controls
33 lines (32 loc) 路 938 Bytes
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
import js from '@eslint/js'
import tseslint from 'typescript-eslint'
import pluginVue from 'eslint-plugin-vue'
export default tseslint.config(
js.configs.recommended,
...tseslint.configs.recommended,
...pluginVue.configs['flat/recommended'],
{
files: ['**/*.vue'],
languageOptions: {
parserOptions: {
parser: tseslint.parser,
}
}
},
{
rules: {
'no-unused-vars': 'off',
'@typescript-eslint/no-explicit-any': 'warn',
'@typescript-eslint/no-unused-vars': ['warn', { argsIgnorePattern: '^_' }],
'@typescript-eslint/no-empty-object-type': 'off',
'vue/multi-word-component-names': 'off',
'vue/no-v-html': 'warn',
'vue/max-attributes-per-line': 'off',
'no-undef': 'off',
'no-useless-assignment': 'off', // False positives in Vue <script setup> (template usage invisible to ESLint)
}
},
{
ignores: ['dist/', 'node_modules/']
}
)