-
Notifications
You must be signed in to change notification settings - Fork 2
/
.eslintrc.js
46 lines (46 loc) · 1.31 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
module.exports = {
root: true,
extends: [
'airbnb-base',
'plugin:vue/vue3-recommended',
],
plugins: [
'vue',
],
globals: {
axios: true,
},
parserOptions: {
parser: 'babel-eslint',
sourceType: 'module',
ecmaVersion: 2017,
allowImportExportEverywhere: true,
},
rules: {
'no-console': process.env.NODE_ENV === 'production' ? 'error' : 'off',
'no-debugger': process.env.NODE_ENV === 'production' ? 'error' : 'off',
indent: ['error', 4],
'arrow-parens': ['error', 'as-needed'],
'vue/html-indent': 0,
'vue/attributes-order': 0,
'no-plusplus': 0,
'no-param-reassign': 0,
'no-mixed-operators': 0,
'no-underscore-dangle': 0,
'func-names': 0,
'no-shadow': 0,
'vue/multi-word-component-names': 0,
'vue/max-attributes-per-line': 0,
'vue/first-attribute-linebreak': 0,
'no-return-assign': ['error', 'except-parens'],
'vue/html-closing-bracket-newline': ['error', {
singleline: 'never',
multiline: 'never',
}],
'vue/html-closing-bracket-spacing': ['error', {
startTag: 'never',
endTag: 'never',
selfClosingTag: 'never',
}],
},
};