From 91b83650b006764d1b235b79c265151c8b00ba19 Mon Sep 17 00:00:00 2001 From: Harrison Shoff Date: Sun, 14 Feb 2016 02:34:47 -0800 Subject: [PATCH] [eslint-v2][constructors] fix bad + good examples --- README.md | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/README.md b/README.md index 952b135a..46e78358 100644 --- a/README.md +++ b/README.md @@ -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'; } } ```