|
47 | 47 | "semi": ["error", "always"], |
48 | 48 | "spaced-comment": ["error", "always"], |
49 | 49 | "no-multi-spaces": "error", |
50 | | - "no-unused-expressions": ["error", { "allowShortCircuit": true, "allowTernary": true }], |
| 50 | + "no-unused-expressions": [ |
| 51 | + "error", |
| 52 | + { "allowShortCircuit": true, "allowTernary": true } |
| 53 | + ], |
51 | 54 | "no-param-reassign": ["error", { "props": true }], |
52 | 55 | "no-return-assign": "error", |
53 | 56 | "max-len": ["error", { "code": 140, "comments": 140 }], |
|
59 | 62 | "object-curly-spacing": ["error", "always", { "arraysInObjects": true }], |
60 | 63 | "comma-spacing": ["error", { "before": false, "after": true }], |
61 | 64 | "arrow-spacing": ["error", { "before": true, "after": true }], |
62 | | - "lines-between-class-members": ["error", "always", { "exceptAfterSingleLine": true }], |
63 | | - "template-curly-spacing": ["error", "never"], |
64 | | - "space-infix-ops": ["error"], |
65 | | - "arrow-body-style": ["error", "as-needed"], |
66 | | - "no-undef": "error", |
67 | | - "no-multi-assign": "error", |
68 | | - "no-nested-ternary": "error", |
69 | | - "no-lonely-if": "error", |
70 | | - "no-unneeded-ternary": "error", |
71 | | - "no-case-declarations": "error", |
72 | | - "object-curly-newline": "off", |
73 | | - "array-bracket-spacing": "off", |
74 | | - "space-before-function-paren": "error", |
75 | | - "space-before-blocks": ["error", { "functions": "always", "keywords": "always", "classes": "always" }], |
| 65 | + "lines-between-class-members": [ |
| 66 | + "error", |
| 67 | + "always", |
| 68 | + { "exceptAfterSingleLine": true } |
| 69 | + ], |
| 70 | + "template-curly-spacing": ["error", "never"], |
| 71 | + "space-infix-ops": ["error"], |
| 72 | + "arrow-body-style": ["error", "as-needed"], |
| 73 | + "no-undef": "error", |
| 74 | + "no-multi-assign": "error", |
| 75 | + "no-nested-ternary": "error", |
| 76 | + "no-lonely-if": "error", |
| 77 | + "no-unneeded-ternary": "error", |
| 78 | + "no-case-declarations": "error", |
| 79 | + "object-curly-newline": "off", |
| 80 | + "array-bracket-spacing": "off", |
| 81 | + "space-before-function-paren": "error", |
| 82 | + "space-before-blocks": [ |
| 83 | + "error", |
| 84 | + { "functions": "always", "keywords": "always", "classes": "always" } |
| 85 | + ], |
76 | 86 | "no-underscore-dangle": "off", |
77 | 87 | "global-require": "off", |
78 | 88 | "jsx-a11y/no-static-element-interactions": "off", |
|
87 | 97 | "import/extensions": "off", |
88 | 98 |
|
89 | 99 | // react (eslint-plugin-react required) |
90 | | - "react/jsx-filename-extension": ["error", { "extensions": [".js", ".jsx"] }], |
| 100 | + "react/jsx-filename-extension": [ |
| 101 | + "error", |
| 102 | + { "extensions": [".js", ".jsx"] } |
| 103 | + ], |
91 | 104 | "react/jsx-no-duplicate-props": ["error"], |
92 | 105 | "react/jsx-indent-props": ["error", 2], |
93 | 106 | "react/jsx-indent": ["error", 2], |
94 | | - "react/jsx-first-prop-new-line": [ "error", "multiline" ], |
| 107 | + "react/jsx-first-prop-new-line": ["error", "multiline"], |
95 | 108 | "react/prop-types": "off", |
96 | 109 | "react/no-children-prop": "off", |
97 | 110 |
|
|
0 commit comments