Support @typescript-eslint/recommended
Created by: vdbongard
Is your proposal related to a problem?
The default typescript template is not compatible with the @typescript-eslint/recommended rules.
Incompatible rules:
Steps to reproduce
- yarn create react-app project --typescript
- cd project
- create .eslintrc.js:
module.exports = {
extends: [
'plugin:@typescript-eslint/recommended',
'react-app',
],
};
- eslint '*/**/*.{ts,tsx}' --fix
2 errors, 17 warnings cannot be fixed:
- errors: @typescript-eslint/no-use-before-define
- warnings: @typescript-eslint/explicit-function-return-type
Describe the solution you'd like
The TypeScript template should be adjusted to be conform with the @typescript-eslint/recommended rules.
Additional infos
I can create a pull request with the changes needed.