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
|[avoid-intl-number-format](https://github.com/bamlab/react-native-project-config/blob/main/packages/eslint-plugin/docs/rules/avoid-intl-number-format.md)| Disallow the use of `Intl.NumberFormat` due to potential performance issues. |![badge-performance][]|| 🔧 |
113
-
|[avoid-react-native-svg](https://github.com/bamlab/react-native-project-config/blob/main/packages/eslint-plugin/docs/rules/avoid-react-native-svg.md)| Disallow importing the `react-native-svg` package. ||![badge-performance][]| 🔧 |
|[no-animated-without-native-driver](https://github.com/bamlab/react-native-project-config/blob/main/packages/eslint-plugin/docs/rules/no-animated-without-native-driver.md)| Disallow the use of `Animated` with `useNativeDriver: false`|![badge-performance][]|| 🔧 |
116
-
|[prefer-user-event](https://github.com/bamlab/react-native-project-config/blob/main/packages/eslint-plugin/docs/rules/prefer-user-event.md)| Enforces usage of userEvent over fireEvent in tests. ||| 🔧 |
117
-
|[require-named-effect](https://github.com/bamlab/react-native-project-config/blob/main/packages/eslint-plugin/docs/rules/require-named-effect.md)| Enforces the use of named functions inside a useEffect ||||
|[avoid-intl-number-format](https://github.com/bamlab/react-native-project-config/blob/main/packages/eslint-plugin/docs/rules/avoid-intl-number-format.md)| Disallow the use of `Intl.NumberFormat` due to potential performance issues. |![badge-performance][]|| 🔧 |
114
+
|[avoid-react-native-svg](https://github.com/bamlab/react-native-project-config/blob/main/packages/eslint-plugin/docs/rules/avoid-react-native-svg.md)| Disallow importing the `react-native-svg` package. ||![badge-performance][]| 🔧 |
|[no-animated-without-native-driver](https://github.com/bamlab/react-native-project-config/blob/main/packages/eslint-plugin/docs/rules/no-animated-without-native-driver.md)| Disallow the use of `Animated` with `useNativeDriver: false`|![badge-performance][]|| 🔧 |
117
+
|[no-different-displayname](https://github.com/bamlab/react-native-project-config/blob/main/packages/eslint-plugin/docs/rules/no-different-displayname.md)| Enforce component displayName to match with component name | ✅ || 🔧 |
118
+
|[no-flatlist](https://github.com/bamlab/react-native-project-config/blob/main/packages/eslint-plugin/docs/rules/no-flatlist.md)| Disallow importing `FlatList` from `react-native` due to potential performance concerns or the preference for alternative components. |![badge-performance][]|| 🔧 |
119
+
|[prefer-user-event](https://github.com/bamlab/react-native-project-config/blob/main/packages/eslint-plugin/docs/rules/prefer-user-event.md)| Enforces usage of userEvent over fireEvent in tests. ||| 🔧 |
120
+
|[require-named-effect](https://github.com/bamlab/react-native-project-config/blob/main/packages/eslint-plugin/docs/rules/require-named-effect.md)| Enforces the use of named functions inside a useEffect ||||
# Disallow importing `FlatList` from `react-native` due to potential performance concerns or the preference for alternative components (`@bam.tech/no-flatlist`)
2
+
3
+
💼 This rule is enabled in the `performance` config.
4
+
5
+
🔧 This rule is automatically fixable by the [`--fix` CLI option](https://eslint.org/docs/latest/user-guide/command-line-interface#--fix).
6
+
7
+
<!-- end auto-generated rule header -->
8
+
9
+
Prevents from using "FlatList" import to avoid performance issues. FlashList should be used instead.
0 commit comments