-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy patheslint.config.js
More file actions
32 lines (31 loc) · 886 Bytes
/
eslint.config.js
File metadata and controls
32 lines (31 loc) · 886 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
import js from '@eslint/js'
import pluginVue from 'eslint-plugin-vue'
import tseslint from '@typescript-eslint/eslint-plugin'
import tsParser from '@typescript-eslint/parser'
export default [
js.configs.recommended,
...pluginVue.configs['flat/essential'],
{
files: ['**/*.ts', '**/*.tsx', '**/*.vue'],
plugins: {
'@typescript-eslint': tseslint,
},
languageOptions: {
parser: (await import('vue-eslint-parser')).default,
parserOptions: {
parser: tsParser,
ecmaVersion: 'latest',
sourceType: 'module',
},
},
rules: {
'@typescript-eslint/no-unused-vars': ['error', { argsIgnorePattern: '^_', varsIgnorePattern: '^_' }],
'vue/multi-word-component-names': 'off',
'no-unused-vars': 'off',
'no-undef': 'off',
},
},
{
ignores: ['dist/**', 'node_modules/**', 'public/**'],
},
]