forked from enso-ui/accessories
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.eslintrc.js
44 lines (44 loc) · 1.19 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
module.exports = {
'root': true,
extends: [
'airbnb-base',
'plugin:vue/recommended'
],
plugins: [
'vue',
],
globals: {
axios: true,
route: 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],
'vue/html-indent': 0,
'vue/attributes-order': 0,
'no-plusplus': 0,
'no-debugger': 0,
'no-param-reassign': 0,
'no-mixed-operators': 0,
'func-names': 0,
'no-shadow': 0,
'vue/max-attributes-per-line': 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'
}]
},
};