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