Skip to content

Commit

Permalink
Disallow unused React imports (#50328)
Browse files Browse the repository at this point in the history
* Update `e`

* Disallow unused React imports
  • Loading branch information
gzdunek authored Dec 17, 2024
1 parent 1a4ba3f commit 25a6c1f
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 4 deletions.
2 changes: 1 addition & 1 deletion e
Submodule e updated from cd63b2 to ab7c9f
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 25a6c1f

Please sign in to comment.