-
-
Notifications
You must be signed in to change notification settings - Fork 6.2k
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: bump typescript-eslint to v8 #17624
Changes from all commits
514fda3
43e8bf2
9f07ed1
5959190
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -97,7 +97,7 @@ export default tseslint.config( | |
], | ||
|
||
'@typescript-eslint/ban-ts-comment': 'error', | ||
'@typescript-eslint/ban-types': 'off', // TODO: we should turn this on in a new PR | ||
'@typescript-eslint/no-unsafe-function-type': 'off', // TODO: we should turn this on in a new PR | ||
'@typescript-eslint/explicit-module-boundary-types': [ | ||
'error', | ||
{ allowArgumentsExplicitlyTypedAsAny: true }, | ||
|
@@ -106,18 +106,23 @@ export default tseslint.config( | |
'error', | ||
{ allow: ['arrowFunctions'] }, | ||
], | ||
'@typescript-eslint/no-empty-object-type': [ | ||
'error', | ||
{ allowInterfaces: 'with-single-extends' }, // maybe we should turn this on in a new PR | ||
], | ||
'@typescript-eslint/no-empty-interface': 'off', | ||
'@typescript-eslint/no-explicit-any': 'off', // maybe we should turn this on in a new PR | ||
'no-extra-semi': 'off', | ||
'@typescript-eslint/no-extra-semi': 'off', // conflicts with prettier | ||
'@typescript-eslint/no-inferrable-types': 'off', | ||
'@typescript-eslint/no-unused-expressions': 'off', // maybe we should turn this on in a new PR | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
|
||
'@typescript-eslint/no-unused-vars': 'off', // maybe we should turn this on in a new PR | ||
'@typescript-eslint/no-var-requires': 'off', | ||
'@typescript-eslint/no-require-imports': 'off', | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
|
||
'@typescript-eslint/consistent-type-imports': [ | ||
'error', | ||
{ prefer: 'type-imports', disallowTypeAnnotations: false }, | ||
], | ||
// disable rules set in @typescript-eslint/stylistic v6 that wasn't set in @typescript-eslint/recommended v5 and which conflict with current code | ||
// disable rules set in @typescript-eslint/stylistic which conflict with current code | ||
// maybe we should turn them on in a new PR | ||
'@typescript-eslint/array-type': 'off', | ||
'@typescript-eslint/ban-tslint-comment': 'off', | ||
|
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -8,7 +8,9 @@ export function run<EO extends ExecaOptions>( | |
bin: string, | ||
args: string[], | ||
opts?: EO, | ||
): ResultPromise<EO & (keyof EO extends 'stdio' ? {} : { stdio: 'inherit' })> { | ||
): ResultPromise< | ||
EO & (keyof EO extends 'stdio' ? object : { stdio: 'inherit' }) | ||
> { | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. https://v8--typescript-eslint.netlify.app/rules/ban-types: this is now covered by |
||
return execa(bin, args, { stdio: 'inherit', ...opts }) as any | ||
} | ||
|
||
|
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.
@typescript-eslint/ban-types
is now split into a few rules: https://typescript-eslint.io/blog/announcing-typescript-eslint-v8-beta#replacement-of-ban-types