We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
In a typescript generic with multiline type arguments, indentation is not normalized.
That means, the following code is left as is:
export type A = NonNullable< string > export type B = NonNullable< string >
Expected:
https://stackblitz.com/edit/stackblitz-starters-q3rvuw?file=test.ts
Run: pnpm eslint test.ts
pnpm eslint test.ts
You will see that the two interface fields are reported to be indented incorrectly, but the two generics are mistakenly considered to be fine.
System: OS: Linux 5.0 undefined CPU: (8) x64 Intel(R) Core(TM) i9-9880H CPU @ 2.30GHz Memory: 0 Bytes / 0 Bytes Shell: 1.0 - /bin/jsh Binaries: Node: 18.18.0 - /usr/local/bin/node Yarn: 1.22.19 - /usr/local/bin/yarn npm: 10.2.3 - /usr/local/bin/npm pnpm: 8.14.0 - /usr/local/bin/pnpm
pnpm
The text was updated successfully, but these errors were encountered:
You may want to report to https://github.com/eslint-stylistic/eslint-stylistic instead.
Sorry, something went wrong.
No branches or pull requests
Describe the bug
In a typescript generic with multiline type arguments, indentation is not normalized.
That means, the following code is left as is:
Expected:
Reproduction
https://stackblitz.com/edit/stackblitz-starters-q3rvuw?file=test.ts
Run:
pnpm eslint test.ts
You will see that the two interface fields are reported to be indented incorrectly, but the two generics are mistakenly considered to be fine.
System Info
Used Package Manager
pnpm
Validations
The text was updated successfully, but these errors were encountered: