[consistent-type-definitions] Add option to use interface with methods #3894
Labels
bug
Something isn't working
package: eslint-plugin
Issues related to @typescript-eslint/eslint-plugin
It is possible to add the possibility of not validating this rule when the interface has functions (default Interface style used in languages like Java)?
E.G.:
Repro
Linter will inform you to use
Type
Run
eslint
with--fix
Code will be updated to:
',' expected
Rule
Before
After auto fix
Expected Result
Don't suggest
Type
forInterfaces
that contain functions (like Java and C# Interface styles)Actual Result
Suggests change, performs auto-fix, but displays error after it.
Additional Info
Versions
@typescript-eslint/eslint-plugin
4.31.1
@typescript-eslint/parser
4.31.1
TypeScript
4.4.3
ESLint
7.32.0
node
12.18.3
The text was updated successfully, but these errors were encountered: