-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.eslintrc.js
45 lines (40 loc) · 1.11 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
41
42
43
44
45
module.exports = {
root: true,
parserOptions: {
parser: '@typescript-eslint/parser',
ecmaVersion: 2021,
sourceType: 'module',
extraFileExtensions: ['.vue'],
project: null,
},
env: {
browser: true,
'vue/setup-compiler-macros': true,
},
extends: [
'plugin:@typescript-eslint/recommended',
'plugin:vue/vue3-essential',
'@vue/standard',
'@vue/typescript/recommended',
],
plugins: ['@typescript-eslint', 'vue'],
rules: {
'@typescript-eslint/consistent-type-imports': 'off',
'no-param-reassign': 'off',
'no-void': 'off',
'no-nested-ternary': 'off',
'max-classes-per-file': 'off',
'no-shadow': 'off',
'@typescript-eslint/no-shadow': 'error',
'import/first': 'off',
'import/namespace': 'error',
'import/default': 'error',
'import/export': 'error',
'import/extensions': 'off',
'import/no-unresolved': 'off',
'import/no-extraneous-dependencies': 'off',
'prefer-promise-reject-errors': 'off',
'vue/multi-word-component-names': 'off',
'no-debugger': process.env.NODE_ENV === 'production' ? 'error' : 'off',
},
}