-
Notifications
You must be signed in to change notification settings - Fork 3
/
.eslintrc.json
64 lines (64 loc) · 2.57 KB
/
.eslintrc.json
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
{
"env": {
"browser": true,
"es6": true
},
"extends": "eslint:recommended",
"parserOptions": {
"sourceType": "module"
},
"globals": {
"PERT": true,
"DataStore": true
},
"rules": {
"indent": ["error", 4, {"SwitchCase": 1}],
"linebreak-style": ["error", "unix"],
"quotes": ["error", "single"],
"semi": ["error", "always"],
"camelcase": "error",
"valid-jsdoc": ["error", {
"prefer": {"return": "returns", "arg": "param", "argument": "param", "virtual": "abstract"},
"preferType": {"boolean": "Boolean", "number": "Number", "object": "Object", "string": "String"},
"requireParamDescription": false,
"requireReturnDescription": false,
"requireReturn": false
}],
"class-methods-use-this": "error",
"curly": ["error", "all"],
"eqeqeq": ["error", "always"],
"no-multi-spaces": "error",
"comma-dangle": ["error", "never"],
"comma-spacing": ["error", {"before": false, "after": true}],
"comma-style": ["error", "last"],
"computed-property-spacing": ["error", "never"],
"eol-last": ["error", "always"],
"func-call-spacing": ["error", "never"],
"key-spacing": ["error", {"beforeColon": false, "afterColon": true}],
"keyword-spacing": ["error", {"before": true, "after": true}],
"array-bracket-spacing": ["error", "never"],
"no-multiple-empty-lines": ["error", {"max": 1}],
"max-len": ["error", {"code": 120, "comments": 80}],
"max-statements-per-line": "error",
"new-parens": "error",
"no-trailing-spaces": "error",
"no-whitespace-before-property": "error",
"object-curly-newline": ["error", {"multiline": true}],
"object-curly-spacing": ["error", "never"],
"space-before-blocks": ["error", "always"],
"space-before-function-paren": ["error", "never"],
"space-in-parens": ["error", "never"],
"space-unary-ops": ["error", {"words": true, "nonwords": false}],
"arrow-body-style": ["error", "as-needed"],
"arrow-parens": ["error", "as-needed"],
"arrow-spacing": ["error", {"before": true, "after": true}],
"no-duplicate-imports": ["error", {"includeExports": true}],
"no-useless-computed-key": "error",
"no-useless-constructor": "error",
"no-var": "error",
"prefer-const": "error",
"prefer-rest-params": "error",
"prefer-spread": "error",
"prefer-template": "error"
}
}