1 | module.exports = {
|
2 | "parserOptions": {
|
3 | "ecmaVersion": 2018,
|
4 | },
|
5 | "env": {
|
6 | "commonjs": true,
|
7 | "es6": true,
|
8 | "node": true,
|
9 | },
|
10 | "extends": "eslint:recommended",
|
11 | "rules": {
|
12 | "no-global-assign": "off",
|
13 | "no-console": "off",
|
14 | "no-undef": "off",
|
15 | "no-nested-ternary": "warn",
|
16 | "no-self-compare": "error",
|
17 | "no-trailing-spaces": "error",
|
18 | "no-unmodified-loop-condition": "error",
|
19 | "no-unneeded-ternary": "error",
|
20 | "no-undef": "error",
|
21 | 'comma-dangle': [ 'error', 'only-multiline' ],
|
22 | "linebreak-style": [ "error", "unix" ],
|
23 | "semi": [ "error", "always" ],
|
24 | "eqeqeq": [ "error", "always", {"null": "ignore"} ],
|
25 | "indent": [ "error", "tab",
|
26 | {
|
27 | MemberExpression: 0,
|
28 | SwitchCase: 1,
|
29 | }
|
30 | ],
|
31 | }
|
32 | };
|