Skip to content
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

Update to typescript-eslint v8 #1082

Merged
merged 16 commits into from
Oct 22, 2024
Merged

Conversation

jakebailey
Copy link
Member

ban-types is out, no-unsafe-function-type and no-wrapper-object-types are in.

DT will have to be updated to deal with this.

@jakebailey
Copy link
Member Author

I have absolutely no idea why this is failing in CI and not locally :(

@jakebailey jakebailey marked this pull request as draft October 17, 2024 23:03
@andrewbranch
Copy link
Member

I recall a previous PR of mine where that same rule was failing locally but not in CI. I don’t think I ended up figuring it out 😕

Comment on lines +38 to +39
const other = findTypesPackage(fileName);
return !other || other.dir !== pkg!.dir;
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It turns out that this test explicitly includes files from other packages (including versioned subdirs) to test the rule, but we weren't actually checking this here. It's not clear to me why this wasn't breaking before, though.

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It's technically not the best to not cache this result, but since linting can be in an editor, we don't want to store a global cache or something. It shouldn't really cost that much.

@jakebailey jakebailey marked this pull request as ready for review October 17, 2024 23:28
@jakebailey
Copy link
Member Author

This is all working now, though DT itself needs to be fixed to deal with the ban-types changes, so that will have to come later.

Copy link
Member

@sandersn sandersn left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Ping me on the DT review when it's ready.

@jakebailey jakebailey merged commit 5f556cf into microsoft:main Oct 22, 2024
7 checks passed
@jakebailey jakebailey deleted the ts-eslint-8 branch October 22, 2024 23:51
@jakebailey
Copy link
Member Author

I have no idea how but this PR broke publishing; it's repeatedly publishing deprecated packages that it's already deprecated. I've paused it until I can figure out what the heck is happening.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants