dillon1000/react

Commit

Fix instances of function declaration after return (#19733)

* Add ESLint plugin to check for any function declare after return
* Refactor code to move function declarations before return and fix failing lint
Browse files
Changed paths6 files
First-parent comparison
M .eslintrc.js ModifiedM package.json ModifiedM packages/eslint-plugin-react-hooks/src/ExhaustiveDeps.js ModifiedM packages/react-native-renderer/src/__mocks__/react-native/Libraries/ReactPrivate/UIManager.js ModifiedM packages/react-native-renderer/src/legacy-events/SyntheticEvent.js ModifiedM yarn.lock Modified
Patch

Files changed

Rendering syntax-highlighted changes…