forked from eyebluecn/tank-front
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.eslintrc.js
65 lines (63 loc) · 1.74 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
// https://eslint.org/docs/user-guide/configuring
module.exports = {
root: true,
parser: 'babel-eslint',
parserOptions: {
sourceType: 'module'
},
env: {
browser: true,
},
// https://github.com/standard/standard/blob/master/docs/RULES-en.md
extends: 'standard',
// required to lint *.vue files
plugins: [
'html'
],
// add your custom rules here
'rules': {
// allow paren-less arrow functions
'arrow-parens': 0,
// allow async-await
'generator-star-spacing': 0,
// allow debugger during development
'no-debugger': process.env.NODE_ENV === 'production' ? 2 : 0,
//ignore the paren check before function.
'space-before-function-paren': [0, 'always'],
//ignore the space before block.
'space-before-blocks': [0, 'always'],
//ignore the empty line check.
'no-multiple-empty-lines': [0, {'max': 2}],
//semicolon or no semicolon is ok.
'semi': [0, 'always'],
//ignore the space before or after =>
'arrow-spacing': 0,
//the type of quotes
'quotes': [0, 'single'],
//block can be padded by blank lines
'padded-blocks': 0,
//comma spacing before or after.
'comma-spacing': 0,
//key spacing.
'key-spacing': [0, {'beforeColon': false, 'afterColon': true}],
//trailing spaces
'no-trailing-spaces': 0,
//spaced comment
'spaced-comment': 0,
//keyword-spacing
'keyword-spacing': 0,
'space-in-parens': 0,
'no-extend-native': 0,
'no-useless-escape': 0,
'no-unused-vars': 0,
'no-undef': 0,
'no-tabs': 0,
'indent': 0,
'no-multi-spaces': 0,
'eol-last': 0,
'no-template-curly-in-string': 0,
'no-mixed-spaces-and-tabs': 0,
'handle-callback-err': 0,
"import/no-webpack-loader-syntax": "off"
}
}