dillon1000/react
Commit
Browse files 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
Changed paths6 files
First-parent comparison.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 ModifiedPatch
Files changed
Rendering syntax-highlighted changes…