Skip to main content

Disallow duplicate class members (no-dupe-class-members)

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

// note you must disable the base rule as it can report incorrect errors
"no-dupe-class-members": "off",
"@typescript-eslint/no-dupe-class-members": ["error"]


See eslint/no-dupe-class-members options.

Taken with โค๏ธ from ESLint core


  • โœ… Recommended
  • ๐Ÿ”ง Fixable
  • ๐Ÿ’ญ Requires type information