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
Copy file name to clipboardExpand all lines: packages/eslint-plugin/README.md
+2Lines changed: 2 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -116,6 +116,8 @@ This plugin exports some custom rules that you can optionally use in your projec
116
116
|[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
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
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
+
|[no-react-navigation-stack](https://github.com/bamlab/react-native-project-config/blob/main/packages/eslint-plugin/docs/rules/no-react-navigation-stack.md)| Disallow importing from `@react-navigation/stack` and suggest using `@react-navigation/native-stack` instead. |![badge-performance][]|||
120
+
|[no-use-is-focused](https://github.com/bamlab/react-native-project-config/blob/main/packages/eslint-plugin/docs/rules/no-use-is-focused.md)| Disallow importing `useIsFocused` from `@react-navigation/native` to encourage using `useFocusEffect` instead. |![badge-performance][]|| 🔧 |
119
121
|[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
122
|[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 ||||
0 commit comments