Skip to content

Commit

Permalink
docs(eslint-plugin): [no-useless-constructor] add example setup (#837)
Browse files Browse the repository at this point in the history
  • Loading branch information
ken0x0a authored and bradzacher committed Aug 12, 2019
1 parent ebbcc01 commit de6cc1d
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions packages/eslint-plugin/docs/rules/no-useless-constructor.md
Expand Up @@ -71,6 +71,16 @@ class A extends B {
}
```

## Rule Changes

```cjson
{
// note you must disable the base rule as it can report incorrect errors
"no-useless-constructor": "off",
"@typescript-eslint/no-useless-constructor": "error",
}
```

## When Not To Use It

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

0 comments on commit de6cc1d

Please sign in to comment.