mirror of
https://github.com/facebook/react-native.git
synced 2025-11-01 09:14:26 +00:00
0c5ef573fe
Summary: This adds the `destructuredArrayIgnorePattern` rule [recently introduced in `typescript-eslint`](https://github.com/typescript-eslint/typescript-eslint/issues/4691), making underscored identifiers in array destructurings no longer an error, e.g. ```js const [state, _dispatch] = useContext(MyContext); ``` would be acceptable if `state` is used. ## Changelog [General] [Added] - Add destructuredArrayIgnorePattern to eslint config Pull Request resolved: https://github.com/facebook/react-native/pull/33552 Test Plan: Install the `react-native-community/eslint-config` package and test the example. Reviewed By: lunaleaps, cipolleschi Differential Revision: D40166101 Pulled By: ryancat fbshipit-source-id: 1e30297bf40d65e09682c4f9f3b3dd432ba5310e