-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.eslintrc.js
58 lines (58 loc) · 1.41 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
module.exports = {
root: true,
env: {
browser: true,
jquery: true,
},
// parser: "@babel/eslint-parser",
parser: "babel-eslint",
parserOptions: {
// "ecmaVersion": 2020,
"sourceType": 'module',
// "ecmaFeatures": {
// "jsx": true,
// "modules": true,
// "experimentalObjectRestSpread": true
// }
},
plugins: [ "html", "promise"],
extends: [
"standard"
],
rules: {
'no-console': process.env.NODE_ENV === 'production' ? 'warn' : 'off',
'no-debugger': process.env.NODE_ENV === 'production' ? 'warn' : 'off',
"camelcase": 0,
"no-extra-boolean-cast": 0,
"space-before-function-paren": ["error", "never"],
"semi": ["error", "always"],
"comma-dangle": [2, "always-multiline"],
"no-var": 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',
],
"space-before-function-paren": ["error", "always"],
},
"globals": {
$: true,
document: true,
}
}