Skip to content

Commit

Permalink
Disallow unused React imports
Browse files Browse the repository at this point in the history
  • Loading branch information
gzdunek committed Dec 17, 2024
1 parent 4297e42 commit 59419a7
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions web/packages/build/eslint.config.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,7 @@ export default tseslint.config(
eslint.configs.recommended,
...tseslint.configs.recommended,
reactPlugin.configs.flat.recommended,
reactPlugin.configs.flat['jsx-runtime'],
importPlugin.flatConfigs.errors,
importPlugin.flatConfigs.warnings,
importPlugin.flatConfigs.typescript,
Expand Down Expand Up @@ -128,9 +129,6 @@ export default tseslint.config(
'react/no-unescaped-entities': 'warn',
'react/jsx-key': 'warn',
'react/jsx-no-target-blank': 'warn',
// Turned off because we use automatic runtime.
'react/jsx-uses-react': 'off',
'react/react-in-jsx-scope': 'off',

'react-hooks/rules-of-hooks': 'warn',
'react-hooks/exhaustive-deps': 'warn',
Expand Down

0 comments on commit 59419a7

Please sign in to comment.