-
Notifications
You must be signed in to change notification settings - Fork 31
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Updating eslint config #1454
base: development
Are you sure you want to change the base?
Updating eslint config #1454
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I am getting errors running ./graldew lintWebapp
.
[irida-ui lint] /home/eenns/irida/src/main/webapp/resources/js/pages/projects/linelist/components/LineList/LineListLayoutComponent.jsx
[irida-ui lint] 0:0 error Parsing error: ESLint was configured to run on `<tsconfigRootDir>/resources/js/pages/projects/linelist/components/LineList/LineListLayoutComponent.jsx` using `parserOptions.project`: <tsconfigRootDir>/tsconfig.json
[irida-ui lint] However, that TSConfig does not include this file. Either:
[irida-ui lint] - Change ESLint's list of included files to not include this file
[irida-ui lint] - Change that TSConfig to include this file
[irida-ui lint] - Create a new TSConfig that includes this file and include it in your parserOptions.project
[irida-ui lint] See the typescript-eslint docs for more info: https://typescript-eslint.io/linting/troubleshooting#i-get-errors-telling-me-eslint-was-configured-to-run--however-that-tsconfig-does-not--none-of-those-tsconfigs-include-this-file
|
# Conflicts: # CHANGELOG.md
For the
on the first line inside the |
I want to add:
TypeScript allows specifying a "@typescript-eslint/consistent-type-imports": "warn" |
# Conflicts: # CHANGELOG.md
# Conflicts: # CHANGELOG.md
This is an excellent synopsis of why does JavaScript need a style guide from AirBnB
This PR will cause lots of lining errors once it is in so please review it carefully.
Summarized this stuff in the WikI:
Updated to using AirBnB eslint typescript config. This is a much more strict configuration than we are currently using so it will pick up a lot of things. We still will need to turn on other options as we come across them, but this will definitely provide a solid and tested base.
./gradlew lintWebapp
from the root directory so you can see the output.Checklist