-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy patheslint.config.js
43 lines (41 loc) · 1.17 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
// @ts-check
import eslint from '@eslint/js'
import tseslint from 'typescript-eslint'
import stylistic from '@stylistic/eslint-plugin'
import pluginVue from 'eslint-plugin-vue'
export default [
{
ignores: ['**/dist/', '**/playground/'],
},
...tseslint.config(
eslint.configs.recommended, // enable eslint:recommended
...tseslint.configs.strict, // a superset of recommended that includes more opinionated rules which may also catch bugs.
),
stylistic.configs['recommended-flat'],
...pluginVue.configs['flat/recommended'],
{
files: ['*.vue', '**/*.vue', '**/*.ts'],
languageOptions: {
parserOptions: {
parser: '@typescript-eslint/parser',
},
},
},
{
rules: {
'@typescript-eslint/no-explicit-any': 'off',
'no-unused-vars': 'off',
'vue/multi-word-component-names': 'off',
'@typescript-eslint/no-non-null-assertion': 'off',
'@typescript-eslint/no-unused-vars': [
'warn', // or "error"
{
argsIgnorePattern: '^_',
varsIgnorePattern: '^_',
caughtErrorsIgnorePattern: '^_',
},
],
'@typescript-eslint/no-dynamic-delete': 'off',
},
},
]