forked from czervenka/ws-proxy-poc
-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy path.eslintrc.js
42 lines (40 loc) · 1.26 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
module.exports = {
"env": {
"browser": false,
"node": true,
"commonjs": true,
"es6": true
},
"extends": "eslint:recommended",
"globals": {
"Atomics": "readonly",
"SharedArrayBuffer": "readonly"
},
"parserOptions": {
"ecmaVersion": 2018
},
"rules": {
"indent": [
"error", 2, {
"VariableDeclarator": { "var": 2, "let": 2, "const": 3 },
"ObjectExpression": "first",
"ArrayExpression": "first",
"SwitchCase": 1,
},
], // indent
"default-case": [ "error" ], // add `// no default` instead of default:... to skip
"no-fallthrough": [ "error" ], // add `// fall through` after statement to skip this check
"no-setter-return": [ "warn" ],
"no-import-assign": [ "warn" ],
"no-dupe-else-if": [ "error" ],
"no-template-curly-in-string": [ "error" ],
"array-callback-return": [ "warn" ],
"dot-notation": [ "warn" ],
"no-constructor-return": [ "warn" ],
"no-eq-null": [ "error" ],
"no-extra-bind": [ "warn" ],
"no-new-wrappers": [ "error" ],
"no-throw-literal": [ "error" ],
"no-unmodified-loop-condition": [ "warn" ],
}
};