-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.eslintrc.js
85 lines (77 loc) · 2 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
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
module.exports = {
env: {
es2021: true,
browser: true,
node: true
},
plugins: ['@typescript-eslint', 'import'],
extends: [
'eslint:recommended',
'plugin:import/recommended',
'plugin:import/typescript',
'airbnb-typescript/base',
'plugin:@typescript-eslint/recommended'
],
parserOptions: {
ecmaVersion: 2021,
sourceType: 'module',
project: './tsconfig.json',
parser: '@typescript-eslint/parser',
tsconfigRootDir: __dirname,
extraFileExtensions: ['.vue']
},
settings: {
'import/resolver': {
node: { extensions: ['.js', '.mjs', '.ts', '.vue'] },
typescript: {}
}
},
overrides: [
{
files: ['*.vue'],
extends: ['plugin:vue/vue3-recommended'],
parser: 'vue-eslint-parser',
parserOptions: {
parser: '@typescript-eslint/parser'
},
rules: {
'no-undef': 'off',
'no-unused-vars': 'off',
'import/first': 'off',
'@typescript-eslint/no-unused-vars': 'off'
}
}
],
rules: {
'no-console': 'off',
'no-debugger': 'off',
'max-len': ['error', 150],
'no-plusplus': 'off',
'comma-dangle': 'off',
'linebreak-style': 'off',
'@typescript-eslint/indent': ['error', 3],
'@typescript-eslint/comma-dangle': 'off',
'@typescript-eslint/no-empty-function': 'off',
'vue/html-indent': ['error', 3],
'vue/component-tags-order': 'off',
'vue/singleline-html-element-content-newline': 'off',
'vue/max-attributes-per-line': [
'error',
{
singleline: 3,
multiline: {
max: 1,
allowFirstLine: false
}
}
],
'no-param-reassign': 'warn',
'import/prefer-default-export': 'off',
'import/no-extraneous-dependencies': [
'error',
{
devDependencies: true
}
]
}
};