no-dupe-class-members
Disallow duplicate class members.
Attributes
- Included in configs
- ✅ Recommended
- 🔒 Strict
- Fixable
- 🔧 Automated Fixer
- 💡 Suggestion Fixer
- 💭 Requires type information
Rule Details
This rule extends the base eslint/no-dupe-class-members
rule.
It adds support for TypeScript's method overload definitions.
How to Use
.eslintrc.cjs
module.exports = {
// Note: you must disable the base rule as it can report incorrect errors
"no-dupe-class-members": "off",
"@typescript-eslint/no-dupe-class-members": "warn"
};
Options
See eslint/no-dupe-class-members
options.
Taken with ❤️ from ESLint core