Created by: vincentjames501
The new ESLint TS rules are a little cumbersome for typedefs. We have 100s of places where we do things like the following as we like to have our types declared at the top of our files.
export type AppProps = ReturnType<typeof mapStateToProps> & typeof mapDispatchToProps;
export const mapStateToProps = (state: RootState) => ({ initialized: state.initialized });
export const mapDispatchToProps = { initialize };
Making the changes here in local eslint-config-react-app/index.js fixes the warnings for TS(X) files.