From 86510fb1519cc7302e3f320d873ea00a956b8bac Mon Sep 17 00:00:00 2001 From: Daniel Freedman Date: Thu, 12 Jan 2017 16:18:06 -0800 Subject: [PATCH] fix linting errors --- .eslintrc.json | 3 ++- src/elements/legacy-element.html | 2 +- src/properties/property-effects.html | 6 +++--- src/utils/boot.html | 3 ++- 4 files changed, 8 insertions(+), 6 deletions(-) diff --git a/.eslintrc.json b/.eslintrc.json index e5b26e55..40a049c6 100644 --- a/.eslintrc.json +++ b/.eslintrc.json @@ -18,6 +18,7 @@ "Polymer": true, "ShadyDOM": true, "ShadyCSS": true, - "ApplyShim": true + "ApplyShim": true, + "goog": true } } diff --git a/src/elements/legacy-element.html b/src/elements/legacy-element.html index 5a8575f0..c13a3975 100644 --- a/src/elements/legacy-element.html +++ b/src/elements/legacy-element.html @@ -89,7 +89,7 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN detached() {} - attributeChanged(name, old, value) {} + attributeChanged(name, old, value) {} // eslint-disable-line no-unused-vars serialize(value) { return this._serializeAttribute(value); diff --git a/src/properties/property-effects.html b/src/properties/property-effects.html index 26d1f7a1..c13567dd 100644 --- a/src/properties/property-effects.html +++ b/src/properties/property-effects.html @@ -1817,9 +1817,9 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN } else { if (!this._hasReadOnlyEffect(/** @type {string} */(path))) { /** @type {?string | undefined} */ - let propPath; - if ((propPath = this._setPathOrUnmanagedProperty(path, value))) { - this._setProperty(path, value); + let propPath = this._setPathOrUnmanagedProperty(path, value); + if (propPath) { + this._setProperty(propPath, value); } } } diff --git a/src/utils/boot.html b/src/utils/boot.html index c41d9fa7..15f46d1b 100644 --- a/src/utils/boot.html +++ b/src/utils/boot.html @@ -12,6 +12,7 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN window.Polymer = window.Polymer || {}; window.Polymer.version = '2.0-preview'; + /* eslint-disable no-unused-vars */ var goog = { reflect: { objectProperty(s, o) { @@ -19,5 +20,5 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN } } } - + /* eslint-enable */