-
Notifications
You must be signed in to change notification settings - Fork 1
/
.eslintrc.js
46 lines (41 loc) · 941 Bytes
/
.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
module.exports = {
root: true,
env: {
es2021: true,
},
extends: [
'plugin:vue/vue3-recommended',
'eslint:recommended',
'@vue/airbnb',
],
rules: {
'no-console': process.env.NODE_ENV === 'production' ? 'warn' : 'off',
'no-debugger': process.env.NODE_ENV === 'production' ? 'warn' : 'off',
'no-tabs': 'off',
indent: ['error', 'tab'],
'vue/html-indent': ['error', 'tab'],
'max-len': 'off',
'import/prefer-default-export': 'off',
'arrow-body-style': 'off',
'vue/max-attributes-per-line': 'off',
'vue/multi-word-component-names': 'off',
'no-unused-vars': ['warn', {
argsIgnorePattern: '^_',
varsIgnorePattern: '^_',
}],
'vue/no-unused-vars': ['warn', { ignorePattern: '^_' }],
'no-shadow': ['warn', { allow: ['_'] }],
// temp
'no-restricted-syntax': 'off',
'no-continue': 'off',
},
settings: {
'import/resolver': {
alias: {
map: [
['@', './src'],
],
},
},
},
};