|
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-return-assign": "error", |
52 | 55 | "max-len": ["error", { "code": 200, "comments": 200 }], |
53 | 56 | "quote-props": ["error", "as-needed"], |
|
58 | 61 | "object-curly-spacing": ["error", "always", { "arraysInObjects": true }], |
59 | 62 | "comma-spacing": ["error", { "before": false, "after": true }], |
60 | 63 | "arrow-spacing": ["error", { "before": true, "after": true }], |
61 | | - "lines-between-class-members": ["error", "always", { "exceptAfterSingleLine": true }], |
62 | | - "template-curly-spacing": ["error", "never"], |
63 | | - "space-infix-ops": ["error"], |
64 | | - "arrow-body-style": "off", |
65 | | - "no-undef": "error", |
66 | | - "no-multi-assign": "error", |
67 | | - "no-nested-ternary": "error", |
68 | | - "no-lonely-if": "error", |
69 | | - "no-unneeded-ternary": "error", |
70 | | - "no-case-declarations": "error", |
71 | | - "object-curly-newline": "off", |
72 | | - "array-bracket-spacing": "off", |
73 | | - "space-before-function-paren": "error", |
74 | | - "space-before-blocks": ["error", { "functions": "always", "keywords": "always", "classes": "always" }], |
| 64 | + "lines-between-class-members": [ |
| 65 | + "error", |
| 66 | + "always", |
| 67 | + { "exceptAfterSingleLine": true } |
| 68 | + ], |
| 69 | + "template-curly-spacing": ["error", "never"], |
| 70 | + "space-infix-ops": ["error"], |
| 71 | + "arrow-body-style": "off", |
| 72 | + "no-undef": "error", |
| 73 | + "no-multi-assign": "error", |
| 74 | + "no-nested-ternary": "error", |
| 75 | + "no-lonely-if": "error", |
| 76 | + "no-unneeded-ternary": "error", |
| 77 | + "no-case-declarations": "error", |
| 78 | + "object-curly-newline": "off", |
| 79 | + "array-bracket-spacing": "off", |
| 80 | + "space-before-function-paren": "error", |
| 81 | + "space-before-blocks": [ |
| 82 | + "error", |
| 83 | + { "functions": "always", "keywords": "always", "classes": "always" } |
| 84 | + ], |
75 | 85 | "no-underscore-dangle": "off", |
76 | 86 | "global-require": "off", |
77 | 87 | "jsx-a11y/no-static-element-interactions": "off", |
|
86 | 96 | "import/extensions": "off", |
87 | 97 |
|
88 | 98 | // react (eslint-plugin-react required) |
89 | | - "react/jsx-filename-extension": ["error", { "extensions": [".js", ".jsx"] }], |
| 99 | + "react/jsx-filename-extension": [ |
| 100 | + "error", |
| 101 | + { "extensions": [".js", ".jsx"] } |
| 102 | + ], |
90 | 103 | "react/jsx-no-duplicate-props": ["error"], |
91 | 104 | "react/jsx-indent-props": "off", |
92 | 105 | "react/jsx-indent": "off", |
93 | 106 | "no-promise-executor-return": "off", |
94 | 107 | "no-param-reassign": "off", |
95 | 108 | "class-methods-use-this": "off", |
96 | | - "react/jsx-first-prop-new-line": [ "error", "multiline" ], |
| 109 | + "react/jsx-first-prop-new-line": ["error", "multiline"], |
97 | 110 | "react/prop-types": "off", |
98 | 111 | "react/no-children-prop": "off", |
99 | 112 |
|
|
123 | 136 | "react/function-component-definition": [ |
124 | 137 | "warn", |
125 | 138 | { |
126 | | - "namedComponents": ["function-declaration", "arrow-function", "function-expression"], |
| 139 | + "namedComponents": [ |
| 140 | + "function-declaration", |
| 141 | + "arrow-function", |
| 142 | + "function-expression" |
| 143 | + ], |
127 | 144 | "unnamedComponents": ["arrow-function", "function-expression"] |
128 | 145 | } |
129 | 146 | ], |
|
0 commit comments