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 ESLint 9.11 and typescript-eslint 8.8 #82

Draft
wants to merge 2 commits into
base: main
Choose a base branch
from
Draft

Conversation

wgoehrig
Copy link
Member

@wgoehrig wgoehrig commented Oct 2, 2024

Since ESLint v8.x reaches end of life this weekend, it's time for us to start work on updating to v9.

This is currently blocked waiting on two dependencies to update:

So far I've only tested these changes in itwinjs-core.

We will also need to decide what to do about stylistic rules - these have moved out of typescript-eslint to @stylistic/eslint-plugin-ts, but the stylistic rules overall are discouraged by typescript-eslint. We may want to consider prettier or dprint...

"@typescript-eslint/eslint-plugin": "~8.8.0",
"@typescript-eslint/parser": "~8.8.0",
"eslint-formatter-visualstudio": "^8.40.0",
"eslint-plugin-import": "^2.30.0",
"eslint-plugin-jam3": "^0.2.3",
Copy link
Member

Choose a reason for hiding this comment

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

wonder if we should remove this, hasnt been touched in 5 yrs

Copy link
Member

Choose a reason for hiding this comment

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

does this eslint rule seem silly?
should this be handled by prettier or some other formatter?

"@typescript-eslint/typedef": "off",
"@typescript-eslint/unbound-method": "error",
"@typescript-eslint/unified-signatures": "error",
// FIXME: Do we want to migrate to @stylistic/eslint-plugin-ts?
Copy link
Member

Choose a reason for hiding this comment

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

i would lke to vote for no, and defer to using a formatter like prettier or biome or something else

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.

2 participants