[eslint-v2] fix empty constructor example

This commit is contained in:
Harrison Shoff
2016-02-14 18:48:31 -08:00
committed by Jordan Harband
parent e1a087fbb1
commit 1f12a12be4

View File

@@ -956,14 +956,14 @@ Other Style Guides
class Rey extends Jedi {
constructor(...args) {
super(...args);
super(args);
}
}
// good
class Rey extends Jedi {
constructor(...args) {
super(...args);
super(args);
this.name = 'Rey';
}
}