Skip to content

Commit 1f12a12

Browse files
hshoffljharb
authored andcommitted
[eslint-v2] fix empty constructor example
1 parent e1a087f commit 1f12a12

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -956,14 +956,14 @@ Other Style Guides
956956

957957
class Rey extends Jedi {
958958
constructor(...args) {
959-
super(...args);
959+
super(args);
960960
}
961961
}
962962

963963
// good
964964
class Rey extends Jedi {
965965
constructor(...args) {
966-
super(...args);
966+
super(args);
967967
this.name = 'Rey';
968968
}
969969
}

0 commit comments

Comments
 (0)