Skip to content

Commit ea56c43

Browse files
matinzdfacebook-github-bot
authored andcommitted
Disable react-in-jsx-scope rule in eslint config (facebook#46587)
Summary: All newly generated react native apps are still showing warnings to use react in the jsx scope. That is not needed anymore as of react 18 with built-in jsx transform plugin. Reproduction: https://github.com/matinzd/react-in-jsx-warning-repro Run `npm run lint` in this repo. ## Changelog: [GENERAL] [FIXED] - Disable `react-in-jsx-scope` rule in eslint config Pull Request resolved: facebook#46587 Test Plan: Initiate a new template with community CLI and you should not see this warning anymore. Reviewed By: christophpurrer Differential Revision: D67394923 Pulled By: cipolleschi fbshipit-source-id: cfe8e44e33e1b3ae9fe17ca56dd3c7258b7bff69
1 parent 44ef2c4 commit ea56c43

File tree

1 file changed

+1
-1
lines changed
  • packages/eslint-config-react-native

1 file changed

+1
-1
lines changed

packages/eslint-config-react-native/index.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -315,7 +315,7 @@ module.exports = {
315315
'react/no-string-refs': 2,
316316
'react/no-unknown-property': 0,
317317
'react/no-unstable-nested-components': 1,
318-
'react/react-in-jsx-scope': 1,
318+
'react/react-in-jsx-scope': 0,
319319
'react/self-closing-comp': 1,
320320
'react/wrap-multilines': 0,
321321

0 commit comments

Comments
 (0)