You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
### Summary
Fixes#443
Replaced `@react-native-community/eslint-config` with
`@react-native/eslint-config`. Please see the PR that changes the name
on the React Native repository
[here](facebook/react-native#34581)
### Test plan
1. Create a new React Native library
2. cd into the library you have created.
3. run `yarn lint`
4. Make sure linting works properly.
Description
Steps to reproduce:
npx create-react-native-library@latest awesome-library
cd awesome-library
example/src/App.tsx
toexample/src/App.jsx
example/src/App.jsx
.package.json
yarn lint
Expectations:
Should not throw an error.
Why this happens?
As mentioned in #432, this uses an old eslint config which does not have
jsx
defined so you have to manually add it.https://github.com/facebook/react-native/blob/v0.71.12/packages/eslint-config-react-native-community/index.js#L37-L68
Where in the latest version
jsx
is defined.https://github.com/facebook/react-native/blob/v0.72.0/packages/eslint-config-react-native-community/index.js#L52-L55
Temporary fix:
Add to
eslintConfig
Permanent fix:
Migrate
@react-native-community/eslint-config
to@react-native/eslint-config
.Packages
Selected options
--
Link to repro
No response
Environment
--
The text was updated successfully, but these errors were encountered: