|
11 | 11 | "alwaysTryTypes": true, |
12 | 12 | "project": "./tsconfig.json" |
13 | 13 | } |
| 14 | + }, |
| 15 | + "react": { |
| 16 | + "version": "detect" |
14 | 17 | } |
15 | 18 | }, |
16 | 19 | "parserOptions": { |
|
22 | 25 | "@typescript-eslint", |
23 | 26 | "eslint-plugin-import", |
24 | 27 | "eslint-plugin-jsdoc", |
| 28 | + "eslint-plugin-react", |
25 | 29 | "etc", |
| 30 | + "react-hooks", |
26 | 31 | "sonarjs" |
27 | 32 | ], |
28 | 33 | "extends": [ |
|
31 | 36 | "plugin:@typescript-eslint/recommended-requiring-type-checking", |
32 | 37 | "plugin:etc/recommended", |
33 | 38 | "plugin:import/typescript", |
| 39 | + "plugin:react/recommended", |
| 40 | + "plugin:react/jsx-runtime", |
34 | 41 | "plugin:sonarjs/recommended" |
35 | 42 | ], |
36 | 43 | "overrides": [{ |
|
176 | 183 | "jsdoc/check-alignment": "error", |
177 | 184 | "jsdoc/check-indentation": ["error", { "excludeTags": ["example", "param", "returns"] }], |
178 | 185 | "jsdoc/tag-lines": ["error", "any", { "startLines": 1 }], |
| 186 | + "jsx-quotes": "error", |
179 | 187 | "keyword-spacing": "error", |
180 | 188 | "linebreak-style": "error", |
181 | 189 | "max-classes-per-file": ["error", 1], |
|
215 | 223 | "quote-props": ["error", "as-needed"], |
216 | 224 | "radix": "error", |
217 | 225 | "rest-spread-spacing": "error", |
| 226 | + "react/display-name": "off", |
| 227 | + "react/hook-use-state": "error", |
| 228 | + "react/jsx-boolean-value": ["error", "always"], |
| 229 | + "react/jsx-closing-bracket-location": "error", |
| 230 | + "react/jsx-curly-spacing": ["error", { "when": "never" }], |
| 231 | + "react/jsx-equals-spacing": ["error", "never"], |
| 232 | + "react/jsx-max-props-per-line": ["error", { |
| 233 | + "maximum": 1, |
| 234 | + "when": "multiline" |
| 235 | + }], |
| 236 | + "react/jsx-no-bind": "error", |
| 237 | + "react/jsx-no-literals": "error", |
| 238 | + "react/jsx-tag-spacing": "error", |
| 239 | + "react/prop-types": "off", |
| 240 | + "react/self-closing-comp": "error", |
| 241 | + "react-hooks/rules-of-hooks": "error", |
218 | 242 | "semi-spacing": "error", |
219 | 243 | "sonarjs/cognitive-complexity": "off", |
220 | 244 | "sonarjs/no-duplicate-string": "off", |
|
0 commit comments