Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add eslint-plugin-bacon (or eslint-plugin-expo if republished) for Expo / React Native apps #242

Open
karlhorky opened this issue May 27, 2023 · 1 comment

Comments

@karlhorky
Copy link
Member

karlhorky commented May 27, 2023

eslint-plugin-bacon is a new Expo ESLint plugin which exposes the following rules:

  • bacon/modern-react-native: require usage of modern imported libraries
  • bacon/no-vector-icon-barrel: prevent usage of barrel imports for vector icons, reducing app size
  • bacon/no-empty-styles: prevent usage of empty arrays, objects and single-item arrays

Update (Apr 2024): eslint-config-expo - maybe this refers to the new plugin too?

@karlhorky
Copy link
Member Author

karlhorky commented Jun 20, 2024

  1. Expo SDK 51 talked about ESLint config (not only eslint-config-expo but also other config packages) in their release notes https://expo.dev/changelog/2024/05-07-sdk-51#expo-router-v35:~:text=eslint%2Dconfig%2Dexpo,source%20code.
  2. Seems like eslint-plugin-expo has been published, but it has different rules
  3. Seems like there's another config here: @react-native/eslint-plugin

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant