Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
eslint-config: add rule for config to work properly (#41272)
Summary: add [no-global-assign](https://eslint.org/docs/latest/rules/no-global-assign#rule-details) to react-native/eslint-config package. without this rule, redefine global variable there is no hint, <img width="462" alt="截屏2023-11-01 14 20 40" src="https://github.com/facebook/react-native/assets/130942798/ff87633d-b1a1-4a8f-9f3f-e2e30f5b87ab"> with this rule enabled: <img width="648" alt="截屏2023-11-01 14 27 09" src="https://github.com/facebook/react-native/assets/130942798/23ec322f-66e2-49a3-b6df-b3ba2549681b"> platform: vscode@latest, macos@14.0 (23A344) ## Changelog: [General] [Fixed] - eslint config global vars redefine there is no message tip <!-- Help reviewers and the release process by writing your own changelog entry. - add `no-global-assign` to eslint config to enable globals Pick one each for the category and type tags: [ANDROID|GENERAL|IOS|INTERNAL] [BREAKING|ADDED|CHANGED|DEPRECATED|REMOVED|FIXED|SECURITY] - Message For more details, see: https://reactnative.dev/contributing/changelogs-in-pull-requests Pull Request resolved: #41272 Test Plan: tested locally Reviewed By: yungsters Differential Revision: D50893943 Pulled By: cipolleschi fbshipit-source-id: 2d418e1ca64722ebf48b52c2c0fe36fb392d7cb9
- Loading branch information