-
Notifications
You must be signed in to change notification settings - Fork 1
/
.eslintrc.js
80 lines (77 loc) · 2.55 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
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
"use strict";
module.exports = {
extends: "eslint:recommended",
root: true,
rules: {
"array-bracket-spacing": ["error", "never"],
"arrow-parens": ["error", "as-needed"],
"camelcase": ["error"],
// "complexity": ["warn", 20],
"comma-spacing": ["error"],
"comma-style": ["error"],
"curly": ["error", "multi-line"],
"guard-for-in": ["error"],
"indent": ["error", 2],
'func-call-spacing': 'error',
"linebreak-style": ["error", "unix"],
"max-len": ["error", { "code": 80, "tabWidth": 2 }],
// "padded-blocks": ["error", "never"],
"padded-blocks": "off",
"no-multiple-empty-lines": "off",
"no-empty": "off",
"no-tabs": ["error"],
"keyword-spacing": "error",
"key-spacing": ["error", {"beforeColon": false, "afterColon": true}],
"no-with": ["error"],
"new-cap": ["error", {"capIsNew": false}],
'no-array-constructor': 'error',
"no-caller": ["error"],
"no-multi-spaces": ["error", { ignoreEOLComments: true }],
"no-multi-str": ["error"],
"no-invalid-this": ["error"],
"no-trailing-spaces": ["error"],
"no-new-wrappers": ["error"],
"no-new-symbol": ["error"],
"no-irregular-whitespace": ["error"],
"no-unneeded-ternary": ["error", { "defaultAssignment": false }],
"no-unused-vars": ["error",
{"argsIgnorePattern": "^_", "varsIgnorePattern": "^_"}],
"no-unused-expressions": ["error"],
"prefer-promise-reject-errors": ["error"],
"prefer-spread": ["error"],
"rest-spread-spacing": ["error"],
"prefer-rest-params": ["error"],
"no-unexpected-multiline": ["error"],
"no-unsafe-optional-chaining": "error",
"no-use-before-define": ["error", {functions: false, classes: false}],
"no-constant-condition": ["error", { "checkLoops": false }],
"no-constructor-return": ["error"],
"no-implied-eval": ["error"],
"no-throw-literal": ["error"],
"no-var": ["error"],
"no-shadow": ["error"],
"prefer-const": ["error", { "destructuring": "all"}],
"semi": ["error", "always"],
"semi-spacing": ["error"],
"require-await": ["error"],
"space-before-blocks": ["error", "always"],
"space-before-function-paren": ["error", {
"anonymous": "never",
"named": "never",
"asyncArrow": "always"
}],
"space-in-parens": ["error", "never"],
"space-infix-ops": ["error", {"int32Hint": true}],
},
ignorePatterns: ["src/one/lib/planck.js", "src/one/lib/fsfx"],
env: {
browser: true,
es6: true
},
globals: {
},
parserOptions: {
ecmaVersion: 2020,
sourceType: 'module'
}
};