Bug: no-extraneous-class triggered on abstract class that does not contain any static methods #9359
Closed
4 tasks done
Labels
accepting prs
Go ahead, send a pull request that resolves this issue
bug
Something isn't working
good first issue
Good for newcomers
locked due to age
Please open a new issue if you'd like to say more. See https://typescript-eslint.io/contributing.
package: eslint-plugin
Issues related to @typescript-eslint/eslint-plugin
Before You File a Bug Report Please Confirm You Have Done The Following...
Playground Link
https://typescript-eslint.io/play/#ts=5.4.5&fileType=.ts&code=LAKA9AVBoAQTAVAFgUxgYwPYDsBmBLAcwFcAnAQwBd8cYBnJc0lAExgCMBPGcgG15gA3PvhZVMpOgDoYAYUbZCKOjwAOq3t0qYYKAB7461RTAkxsKAO5CRY7ZKmwIYUOXZGK6Shl7k6KgHFeTHY%2BWRwCEgpqWgBvWBhIaBAYVPgAJRRKMmwVSlRdbCwWfBM6YnUJSlYOLQLq0gBbUr5HFLSEuBgAAWZs0lyYfLQUIswSsorVKpquIfqUJpbeTucE1WJ2Xnx0HndKT28lSgBlKZmWBEXm7D4AUTGJwjoACgBKAC4YE6yAHmxiI12IsAHwAblACSSqxgmX6g2GGDIzGw3gaNz4hWKpUIbVScBhvSyOTyBXQyNGaOuyyx4xxMBeLBQuHIxF4lDyOkRrO0AFomdUvDVRtjFG9Vi52hstjs9h5yF4YMcrktbrwHqLCO8vgCgYsISAoVAYT8OfM0OiaSK6SZMLhzaZiJQNpQ8WkYL9VCCYchDBhyNgOGhiHQatoYLgJOgLQUQ2g7TAAIIAOROAEkMJhgpIYJZUIHhvhSPRzqRvH7sJhvAKUEKWG6Ce0ut1VExyI1aU8YLyHZROKp4-brV38lRe9S1SXKmW6IS%2BiT5oZCflSJhLCoEP2UHdSKvi-h7b9iigQcOcb8wMeQTA-cRsEyCBY2GYAfwJetNttdm55YrQ5QVQxdVHhxF4z0UHVAWBUhPhgIIQjCCIiDIKgaGwA0AF9IRAfRpjLGBYjg4JQl4cI8GQ6I0JgDCwSAA&eslintrc=N4KABGBEAOA2CuBzAlgOwM6QFzjAbVwkgAEAXAT2gFN0BjAJ2WlIFobY1SB6U9D1UpFwBdADS5I9eLBrYwoCETKUaDJq3acuqAPZsAHqXoBDVFR3x0LWrGPpMWKFXr0d9IRAC%2BIT0A&tsconfig=N4KABGBEDGD2C2AHAlgGwKYCcDyiAuysAdgM6QBcYoEEkJemy0eAcgK6qoDCAFutAGsylBm3TgwAXxCSgA&tokens=false
Repro Code
ESLint Config
tsconfig
Expected Result
No error
Actual Result
Error claiming that the class only contains static properties, when in fact it does not contain even a single static property.
Additional Info
"@eslint/js": "^9.4.0",
"@typescript-eslint/eslint-plugin": "^7.13.0",
"@typescript-eslint/parser": "^7.13.0",
"eslint": "^9.4.0",
"typescript-eslint": "^7.13.0",
The text was updated successfully, but these errors were encountered: