Skip to content

Commit

Permalink
Disable react-in-jsx-scope rule in eslint config (#46587)
Browse files Browse the repository at this point in the history
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: #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
  • Loading branch information
matinzd authored and facebook-github-bot committed Dec 19, 2024
1 parent 44ef2c4 commit ea56c43
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/eslint-config-react-native/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -315,7 +315,7 @@ module.exports = {
'react/no-string-refs': 2,
'react/no-unknown-property': 0,
'react/no-unstable-nested-components': 1,
'react/react-in-jsx-scope': 1,
'react/react-in-jsx-scope': 0,
'react/self-closing-comp': 1,
'react/wrap-multilines': 0,

Expand Down

0 comments on commit ea56c43

Please sign in to comment.