forked from root-project/jsroot
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.eslintrc.cjs
48 lines (48 loc) · 1.6 KB
/
.eslintrc.cjs
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
module.exports = {
"env": {
"browser": true,
"es2021": true
},
extends: [
'semistandard'
],
"parserOptions": {
"ecmaVersion": "latest",
"sourceType": "module"
},
"ignorePatterns" : ["modules/base/zstd.mjs", "modules/three.mjs", "modules/three_addons.mjs", "modules/d3.mjs", "modules/gui/lil-gui.mjs"],
"rules": {
"quotes": ["warn", "single"],
"indent": "off",
"camelcase": "off",
"space-before-function-paren": ["warn", "never"],
"comma-spacing": "warn",
"keyword-spacing": "warn",
"prefer-const": "warn",
"eqeqeq": "warn",
"spaced-comment": "warn",
"array-bracket-spacing": "warn",
"key-spacing": "warn",
"space-in-parens": "warn",
"computed-property-spacing": "warn",
"object-curly-spacing": "warn",
"semi-spacing": "warn",
"no-floating-decimal": "warn",
"semi": "warn",
"object-curly-newline": ["warn", {
"ObjectExpression": { "consistent": true },
"ObjectPattern": { "consistent": true },
"ImportDeclaration": "never",
"ExportDeclaration": "never"
}],
"curly": ["warn", "multi-or-nest"],
"one-var": ["warn", "consecutive"],
"space-infix-ops": "off",
"no-multi-spaces": ["warn", { ignoreEOLComments: true }],
"no-multiple-empty-lines": "off",
"object-property-newline": "off",
"promise/param-names": ["warn", { resolvePattern: "^resolve*", rejectPattern: "^reject*" } ],
"no-new-func": "off",
"padded-blocks": ["warn", { "blocks": "never", "classes": "always", "switches": "never" }]
}
};