This repository was archived by the owner on Dec 2, 2025. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 278
Expand file tree
/
Copy path.eslintrc.js
More file actions
57 lines (56 loc) · 1.28 KB
/
Copy path.eslintrc.js
File metadata and controls
57 lines (56 loc) · 1.28 KB
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
// http://eslint.org/docs/user-guide/configuring
module.exports = {
root: true,
extends: 'standard',
parser: 'babel-eslint',
parserOptions: {
sourceType: 'module'
},
globals: {
// Put things like jQuery, etc
jQuery: true,
$: true,
},
env: {
browser: true,
jquery: true,
},
// required to lint *.vue files
plugins: [
'html'
],
// add your custom rules here
rules: {
// allow debugger during development
'no-debugger': process.env.NODE_ENV === 'production' ? 2 : 0,
"camelcase": 0,
"no-extra-boolean-cast": 0,
"space-before-function-paren": ["error", "never"],
"semi": ["error", "always"],
"comma-dangle": [2, "always-multiline"],
"no-console": 0, //console 未删除
"no-var": 0,
"no-new": 0,
"import/no-unresolved": 0,
"no-underscore-dangle": [0],
"prefer-template": 0,
"object-shorthand": [0],
"prefer-arrow-callback": 0,
"prefer-rest-params": 0,
"no-param-reassign": 0,
"max-len": ["error", {
"code": 200,
"tabWidth": 2,
"comments": 200,
"ignoreComments": false,
"ignoreTrailingComments": false,
"ignoreUrls": true
}],
"global-require": 0,
'no-restricted-syntax': [
2,
'LabeledStatement',
'WithStatement',
]
}
}