1 | {
|
2 | // this is JSON file, but ESLint allows C-style comments
|
3 |
|
4 | "env": {
|
5 | "browser": true,
|
6 | "node": false
|
7 | },
|
8 |
|
9 | // 0 - turn rule off
|
10 | // 1 - rule generates warnings
|
11 | // 2 - rule generates errors
|
12 | "rules": {
|
13 | "camelcase": 0,
|
14 | "camel_case": 0,
|
15 | "strict": 0,
|
16 | "no-undef": 1,
|
17 | "no-console": 0,
|
18 | "no-unused-vars": 1,
|
19 | "no-underscore-dangle": 0,
|
20 | "quotes": [2, "single"],
|
21 | "brace-style": [2, "1tbs"],
|
22 | "eol-last": 2,
|
23 | "semi": [2, "always"],
|
24 | "no-extra-strict": 0,
|
25 | "no-single-line-objects": 2,
|
26 | "no-nested-ternary": 2,
|
27 | "no-space-before-semi": 2,
|
28 | "no-shadow": 2,
|
29 | "no-undef-init": 2,
|
30 | "no-undefined": 0,
|
31 | "no-sequences": 2,
|
32 | "no-for-loops": 2,
|
33 | "no-process-exit": 0,
|
34 | "consistent-return": 0
|
35 | },
|
36 |
|
37 | "globals": {
|
38 | "console": true,
|
39 | "module": true,
|
40 | "require": true,
|
41 | "Promise": true
|
42 | }
|
43 | }
|