-
Notifications
You must be signed in to change notification settings - Fork 273
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
chore: switch from tslint to eslint #3651
Conversation
I thought we pushed this into the future as it will make syncing changes with the 0.12 harder? Looking at the changes it doesn't seem to be that big of a deal though. |
It looks like there are some conflicts. |
Sorry, I got distracted and tried my hand at this to see how much work it would be, and apparently it was not a big change after all. The changes required were all fairly minimal, so I feel like there should be fairly minimal risk.
Thanks for noticing! My base branch wasn't quite up to date, so there was one conflict in Of course if we feel like this is not the right time for this PR, we can do this again some other time. Key steps for this project:
|
Nice! Thanks for taking this on :) I think now is a great time for this, very good to shed more of deprecated packages from the repo and improve our DC along the way. |
|
I think this is great and should really not cause a lot of conflict pain later one. |
What this PR does / why we need it:
Switches from the deprecated TSLint to ESLint in our main repository.
Which issue(s) this PR fixes:
Fixes #3648
Special notes for your reviewer:
We should do another pass for simplifying and combining the variousEdit: done ✅.esllintrc.js
files into one good centralized configuration. This is just the initial pass to get the switch done.I'm temporarily making max line width 120 only a warning, as our codebase has quite a lot of those to fix, if we want to enforce that. We can switch back to error level on those later, if we want.Edit: I loosened the max line length rule to not apply to comments, strings and template strings. We can tighten this later if we want.⚠️ There are also a couple of lint errors that we should fix - a bunch of unawaited promises and some variable shadowing issues. Fixing some of these might affect behavior? I'm not sure.Edit: turned these into warnings as opposed to hard errors. Fix later.Squash before merging.