-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy path.eslintrc.js
66 lines (57 loc) · 1.69 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
module.exports = {
root: true,
parserOptions: {
parser : 'babel-eslint',
sourceType: 'module'
},
env: {
browser: true,
node : true
},
extends: [
'plugin:vue/essential',
'@vue/standard'
],
// required to lint *.vue files
plugins: [
'vue'
],
globals: {
'__static' : true,
'WorkerGlobalScope': true,
'FileReaderSync' : true,
'appVue' : true
},
// add your custom rules here
rules: {
// allow async-await
'generator-star-spacing': 'off',
// allow paren-less arrow functions
'arrow-parens' : 0,
'one-var' : 0,
'no-tabs' : 0,
'spaced-comment' : 0,
'no-extra-boolean-cast' : 0,
'space-before-function-paren' : 0,
'space-infix-ops' : 0,
'padded-blocks' : 0,
'no-useless-call' : 0,
'standard/no-callback-literal': 0,
'no-multiple-empty-lines' : 0,
'indent' : ['error', 'tab', { 'SwitchCase': 1 }],
'key-spacing' : ['error', { 'align': 'colon' }],
'quote-props' : ['error', 'consistent'],
'import/first' : 0,
'import/named' : 2,
'import/namespace' : 2,
'import/default' : 2,
'import/export' : 2,
'import/extensions' : 0,
'import/no-unresolved' : 0,
'import/no-extraneous-dependencies': 0,
// allow console.log during development only
'no-console' : process.env.NODE_ENV === 'production' ? 'error' : 'off',
// allow debugger during development only
'no-debugger': process.env.NODE_ENV === 'production' ? 'error' : 'off'
}
}