Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit de6cc1d

Browse files
ken0x0abradzacher
authored andcommitted
docs(eslint-plugin): [no-useless-constructor] add example setup (typescript-eslint#837)
1 parent ebbcc01 commit de6cc1d

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

packages/eslint-plugin/docs/rules/no-useless-constructor.md

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -71,6 +71,16 @@ class A extends B {
7171
}
7272
```
7373

74+
## Rule Changes
75+
76+
```cjson
77+
{
78+
// note you must disable the base rule as it can report incorrect errors
79+
"no-useless-constructor": "off",
80+
"@typescript-eslint/no-useless-constructor": "error",
81+
}
82+
```
83+
7484
## When Not To Use It
7585

7686
If you don't want to be notified about unnecessary constructors, you can safely disable this rule.

0 commit comments

Comments
 (0)