Closed
Description
Before You File a Bug Report Please Confirm You Have Done The Following...
- I have tried restarting my IDE and the issue persists.
- I have updated to the latest version of the packages.
- I have searched for related issues and found none that matched my issue.
- I have read the FAQ and my problem is not listed.
Playground Link
Repro Code
interface A {
p1: number;
p2: number;
}
interface B extends A {
}
class B {
}
ESLint Config
module.exports = {
"rules": {
"@typescript-eslint/no-empty-interface": "warn"
}
}
tsconfig
Expected Result
I expect that it will not try to auto-fix this
interface A {
p1: number;
p2: number;
}
interface B extends A {
}
class B {
}
Actual Result
After auto-fix this how it will look:
interface A {
p1: number;
p2: number;
}
type B = A
class B {
}
This breaks typescript
Additional Info
Versions
package | version |
---|---|
@typescript-eslint/eslint-plugin |
5.30.0 |
@typescript-eslint/parser |
5.30.0 |
TypeScript |
4.7.2 |
ESLint |
8.15.0 |
node |
web |