[eslint-v2][constructors] fix bad + good examples

This commit is contained in:
Harrison Shoff
2016-02-14 02:34:47 -08:00
committed by Jordan Harband
parent 1cbc628c49
commit 91b83650b0

View File

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