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: migrate to eslint #7368
chore: migrate to eslint #7368
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.
The only thing I saw in there is where we changed getArguments
, which was literally trying to get an Arguments
instance on purpose. I think if that's changed back, we're good to go with this.
I REALLY appreciate this PR.
no worries, i've reverted that and added an ignore. we may have also found a bug in the prefer-const eslint rule, or just a limitation. in that anywhere we do this pattern: let x;
doThingLaterOn(() => {
x();
});
doThingNow(() => {
x = whatever;
}); it tells us to use also, keep in mind the dev site still uses tslint for the tools. we can probably migrate away from that in a separate pr |
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.
Oops. It looks like we have a failing test. Womp womp.
not sure why CI is failing... something to do with core-js in the dev site's build? 🤔 any idea? |
@43081j I think if you rebase now, it may resolve the issue. |
sorry for the delay @benlesh , have rebased now 👍 |
This just removes tslint and its associated packages, replacing them with eslint and `@typescript-eslint`. Any custom rule config we had has been discarded so we can instead rely on the recommended configs from both eslint and tseslint.
rebased again fyi |
The failure here seems weird. I'm going to go ahead and merge this, and sort it out separately. |
Thank you again, @43081j ... this is a very helpful PR |
no problem, thanks for taking time to review i also couldn't figure the failure out since i couldn't repro it locally, will be interesting to find out what it was 👀 |
This just removes tslint and its associated packages, replacing them with eslint and
@typescript-eslint
.Any custom rule config we had has been discarded so we can instead rely on the recommended configs from both eslint and tseslint.
let me know if you want this. if you want any specific rules too, just let me know.