From 75c6fff78bea23495279c6b63a17319c63234ec5 Mon Sep 17 00:00:00 2001 From: Tim van der Lippe Date: Wed, 16 Aug 2017 19:23:50 -0700 Subject: [PATCH] Enable ESLint 'semi' rule Closes #4651 --- .eslintrc.json | 1 + lib/elements/array-selector.html | 8 ++++---- lib/elements/dom-bind.html | 4 ++-- lib/elements/dom-if.html | 4 ++-- lib/elements/dom-module.html | 2 +- lib/elements/dom-repeat.html | 6 +++--- lib/legacy/class.html | 6 +++--- lib/legacy/legacy-element-mixin.html | 6 +++--- lib/legacy/polymer.dom.html | 4 ++-- lib/mixins/element-mixin.html | 2 +- lib/mixins/property-accessors.html | 4 ++-- lib/mixins/property-effects.html | 6 +++--- lib/utils/array-splice.html | 2 +- lib/utils/async.html | 6 +++--- lib/utils/boot.html | 6 +++--- lib/utils/debounce.html | 2 +- lib/utils/flattened-nodes-observer.html | 2 +- lib/utils/flush.html | 4 ++-- lib/utils/gestures.html | 2 +- lib/utils/import-href.html | 2 +- lib/utils/render-status.html | 2 +- lib/utils/settings.html | 4 ++-- lib/utils/templatize.html | 18 +++++++++--------- 23 files changed, 52 insertions(+), 51 deletions(-) diff --git a/.eslintrc.json b/.eslintrc.json index 634e0a66c6..c25f61e55a 100644 --- a/.eslintrc.json +++ b/.eslintrc.json @@ -6,6 +6,7 @@ "rules": { "no-console": "off", "no-var": "error", + "semi": "error", "strict": "error", "valid-jsdoc": ["error", { "requireReturn": false, diff --git a/lib/elements/array-selector.html b/lib/elements/array-selector.html index bb1381674c..9deba97345 100644 --- a/lib/elements/array-selector.html +++ b/lib/elements/array-selector.html @@ -105,11 +105,11 @@ value: false } - } + }; } static get observers() { - return ['__updateSelection(multi, items.*)'] + return ['__updateSelection(multi, items.*)']; } constructor() { @@ -222,7 +222,7 @@ // order: selected array index this.__selectedMap = new Map(); // Initialize selection - this.selected = this.multi ? [] : null + this.selected = this.multi ? [] : null; this.selectedItem = null; } @@ -416,7 +416,7 @@ class ArraySelector extends baseArraySelector { // Not needed to find template; can be removed once the analyzer // can find the tag name from customElements.define call - static get is() { return 'array-selector' } + static get is() { return 'array-selector'; } } customElements.define(ArraySelector.is, ArraySelector); Polymer.ArraySelector = ArraySelector; diff --git a/lib/elements/dom-bind.html b/lib/elements/dom-bind.html index ec6c547009..3a32c7f926 100644 --- a/lib/elements/dom-bind.html +++ b/lib/elements/dom-bind.html @@ -52,7 +52,7 @@ */ class DomBind extends domBindBase { - static get observedAttributes() { return ['mutable-data'] } + static get observedAttributes() { return ['mutable-data']; } constructor() { super(); @@ -104,7 +104,7 @@ } else { throw new Error('dom-bind requires a