Skip to content

Commit

Permalink
docs(eslint-plugin): fix no-useless-constructor examples (#329)
Browse files Browse the repository at this point in the history
it should be the plugin rule name, than eslint core rule name.
  • Loading branch information
aladdin-add authored and j-f1 committed Mar 2, 2019
1 parent 2f4276f commit 00eae48
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions packages/eslint-plugin/docs/rules/no-useless-constructor.md
Expand Up @@ -23,7 +23,7 @@ This rule flags class constructors that can be safely removed without changing h
Examples of **incorrect** code for this rule:

```js
/*eslint no-useless-constructor: "error"*/
/*eslint @typescript-eslint/no-useless-constructor: "error"*/

class A {
constructor() {}
Expand All @@ -39,7 +39,7 @@ class A extends B {
Examples of **correct** code for this rule:

```js
/*eslint no-useless-constructor: "error"*/
/*eslint @typescript-eslint/no-useless-constructor: "error"*/

class A {}

Expand Down

0 comments on commit 00eae48

Please sign in to comment.