Open onemen opened 5 years ago
Sounds good
The tables below contains list of linting issues when applying recommended rules from typescript-eslint and react-app.
I can work on PR to fix those issues.
I thinks we need to fix all react-app linting issues, regarding typescript-eslint let me know if you want to fix all the issues from the recommended rules or if you want to allow some.
Let me case you want to enable other rules.
eslint-config-react-app | Issues | Files |
---|---|---|
array-callback-return | 1 | 1 |
default-case | 1 | 1 |
eqeqeq | 8 | 1 |
import/first | 23 | 1 |
jsx-a11y/alt-text | 1 | 1 |
jsx-a11y/anchor-is-valid | 12 | 8 |
no-sparse-arrays | 1 | 1 |
no-useless-constructor | 5 | 5 |
react/jsx-no-target-blank | 1 | 1 |
react/react-in-jsx-scope | 25 | 5 |
I'm cool with you fixing all of them
While working on fixing lint error I've noticed that some files are not in use. let me know if this files cane be remove
yeah you can remove them
I've found more file that maybe are not in use, please let me know if I can remove these files. If some of the files are in use, I hope you can point me to the place that use them.
I'm not an expert in graphql so maybe I've missed the place that use these files. Maybe some other files are generated from these files ?
everything in the pages folder is used. They are routes.
All the resolver.ts files are used here https://github.com/benawad/codeponder/blob/master/packages/server/src/index.ts#L48
Tslint
tslint is installed but i did not find any configuration file or script to run it
Testing tslint with the configuration below produce many linting errors and warnings.
Eslint + typescript-eslint
Testing eslint with the configuration below produce many linting errors and warnings.
I think you should replace tslint with eslint and configure it for react/typescript project with prettier. You can also install vscode extension for Eslint.