Skip to content

Commit c94b1c9

Browse files
committed
front: disable react/react-in-jsx-scope lint
Forcing all .tsx/.jsx files to include React is cargo culting from old versions of the JSX compiler which were merely performing string substitution. Since React version 17 this isn't required anymore and the unused React imports can be dropped.
1 parent c2b8718 commit c94b1c9

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

front/.eslintrc

+2
Original file line numberDiff line numberDiff line change
@@ -85,6 +85,8 @@
8585
"react/jsx-filename-extension": "off",
8686
"react/jsx-no-useless-fragment": "error",
8787
"react/jsx-props-no-spreading": 0,
88+
"react/jsx-uses-react": "off",
89+
"react/react-in-jsx-scope": "off",
8890
"react/prefer-stateless-function": "off",
8991
"react/static-property-placement": 0,
9092
// disable vitest/prefer-to-be because it does not authorize toEqual for the floats

0 commit comments

Comments
 (0)