-
Notifications
You must be signed in to change notification settings - Fork 0
/
.eslintrc
74 lines (68 loc) · 2.43 KB
/
.eslintrc
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
67
68
69
70
71
72
73
74
{
"extends": [
"eslint:recommended"
],
"env": {
"es2020": true,
"node": true,
"es6": true
},
"parserOptions": {
"ecmaVersion": "latest",
"ecmaFeatures": {
"impliedStrict": true
},
"requireConfigFile": false
},
"parser": "@babel/eslint-parser",
"rules": {
//"camelcase": ["warn", {"properties": "always"}],
"comma-style": ["error", "last"],
"curly": [0],
"eqeqeq": ["error", "always"],
"eol-last": ["warn", "never"],
"handle-callback-err": ["error"],
"indent": ["error", "tab", {"SwitchCase": 1}],
"linebreak-style": ["error", "windows"],
"no-mixed-spaces-and-tabs": ["error", "smart-tabs"],
"no-return-assign": ["error", "except-parens"],
"no-sequences": ["error"],
"no-trailing-spaces": ["warn"],
"no-undef": ["error"],
"no-empty": ["error", {"allowEmptyCatch": true}],
"no-template-curly-in-string": ["error"],
"object-shorthand": ["warn"],
"quote-props": ["warn", "as-needed"],
"array-callback-return": ["error"],
"no-eval": ["error"],
"no-var": ["warn"],
"no-useless-escape": ["warn"],
"prefer-template": ["warn"],
//"multiline-comment-style": ["warn", "starred-block"],
"spaced-comment": ["warn", "always", {
"markers": ["TODO:", "NOTE:", "FIXME:", "HACK:"]
}],
"template-curly-spacing": ["warn", "never"],
"space-before-function-paren": ["warn", "never"],
"space-before-blocks": ["error", "always"],
"space-infix-ops": ["error"],
"space-in-parens": ["error", "never"],
"comma-spacing": ["error"],
"arrow-spacing": ["error"],
"keyword-spacing": ["error", {
"overrides": {
"if": {"after": false},
"for": {"after": false},
"while": {"after": false},
"switch": {"after": false},
"catch": {"after": false}
}
}],
"no-return-await": ["warn"],
"no-unexpected-multiline": ["warn"],
"no-unused-vars": ["warn", {"args": "none"}],
"quotes": ["error", "double", {"allowTemplateLiterals": true}],
"node/no-unpublished-require": [0],
"no-prototype-builtins": [0]
}
}