1 | {
|
2 | "parserOptions": {
|
3 | "ecmaVersion": 2018
|
4 | },
|
5 | "env": {
|
6 | "node": true,
|
7 | "es6": true
|
8 | },
|
9 | "extends": "eslint:recommended",
|
10 | "rules": {
|
11 | "arrow-parens": ["warn", "as-needed"],
|
12 | "arrow-spacing": "warn",
|
13 | "block-scoped-var": "warn",
|
14 | "brace-style": [ "warn", "stroustrup", {
|
15 | "allowSingleLine": true
|
16 | }],
|
17 |
|
18 | "comma-spacing": "warn",
|
19 | "comma-style": "warn",
|
20 |
|
21 | "curly": "warn",
|
22 | "dot-notation": "warn",
|
23 | "eol-last": "error",
|
24 | "eqeqeq": "warn",
|
25 |
|
26 | "func-call-spacing": [ "warn", "never" ],
|
27 | "func-style": [ "error", "declaration", {
|
28 | "allowArrowFunctions": true
|
29 | }],
|
30 | "generator-star-spacing": "warn",
|
31 | "indent": [ "warn", 2, {
|
32 | "MemberExpression": 0,
|
33 | "SwitchCase": 1
|
34 | }],
|
35 | "jsx-quotes": "error",
|
36 | "new-parens": "error",
|
37 |
|
38 | "no-caller": "error",
|
39 | "no-console": "off",
|
40 | "no-duplicate-imports": "error",
|
41 | "no-else-return": "warn",
|
42 | "no-eval": "error",
|
43 | "no-extra-label": "warn",
|
44 | "no-floating-decimal": "warn",
|
45 | "no-lonely-if": "warn",
|
46 | "no-mixed-operators": "off",
|
47 | "no-multi-str": "error",
|
48 | "no-negated-in-lhs": "warn",
|
49 | "no-shadow": "warn",
|
50 | "no-undef-init": "error",
|
51 | "no-unused-expressions": "error",
|
52 | "no-useless-computed-key": "warn",
|
53 | "no-useless-constructor": "warn",
|
54 | "no-useless-rename": "warn",
|
55 | "no-useless-return": "warn",
|
56 | "no-var": "error",
|
57 | "no-whitespace-before-property": "warn",
|
58 |
|
59 | "object-curly-spacing": [ "error", "always" ],
|
60 | "prefer-const": "warn",
|
61 | "prefer-rest-params": "warn",
|
62 | "quotes": [ "warn", "single", {
|
63 | "allowTemplateLiterals": true
|
64 | }],
|
65 |
|
66 | "rest-spread-spacing": ["warn", "never"],
|
67 | "semi-spacing": "warn",
|
68 | "semi-style": [ "warn", "last" ],
|
69 | "semi": [ "error", "always" ],
|
70 |
|
71 | "space-before-blocks": "warn",
|
72 | "space-before-function-paren": "warn",
|
73 | "space-infix-ops": "warn",
|
74 | "space-in-parens": ["warn", "never"],
|
75 | "spaced-comment": ["warn", "always"],
|
76 | "template-curly-spacing": "warn",
|
77 | "yield-star-spacing": "warn",
|
78 |
|
79 | "valid-jsdoc": ["warn", {
|
80 | "requireReturn": false,
|
81 | "requireReturnDescription": false,
|
82 | "requireParamDescription": false
|
83 | }]
|
84 | }
|
85 | }
|