-
-
Notifications
You must be signed in to change notification settings - Fork 50
/
.eslintrc.js
40 lines (40 loc) · 1.06 KB
/
.eslintrc.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
module.exports = {
parser: 'vue-eslint-parser',
root: true,
parserOptions: {
parser: '@typescript-eslint/parser',
ecmaVersion: 2020,
sourceType: 'module',
ecmaFeatures: {
jsx: true,
},
},
extends: ['plugin:vue/vue3-recommended', '@innei/eslint-config-ts'],
overrides: [
{
files: [
'*.config.[tj]s',
'pages/**/*.[tj]sx',
'src/pages/**/*.[tj]sx',
'src/views/**/*.[tj]sx',
'src/layouts/**/*.[tj]sx',
],
rules: {
'import/no-default-export': 'off',
},
},
],
rules: {
'@typescript-eslint/ban-types': 'off',
'@typescript-eslint/no-explicit-any': 'off',
'@typescript-eslint/no-unused-vars':
process.env.NODE_ENV === 'development' ? 'warning' : 'off',
'vue/one-component-per-file': 'off',
'@typescript-eslint/ban-ts-comment': 'off',
'vue/require-default-prop': 'off',
'vue/no-mutating-props': 'off',
'@typescript-eslint/no-namespace': 'off',
'@typescript-eslint/no-non-null-assertion': 0,
'vue/html-self-closing': 'error',
},
}