From 6d240138af00eac3ac33d12870ba20b560ff6e51 Mon Sep 17 00:00:00 2001 From: Tim van der Lippe Date: Fri, 20 Apr 2018 17:20:16 +0200 Subject: [PATCH] Fix ESLint warnings --- .eslintrc.json | 3 ++- test/unit/dom-bind.html | 8 ++++++-- test/unit/globals.html | 4 ++-- util/minimalDocument.js | 2 -- 4 files changed, 10 insertions(+), 7 deletions(-) diff --git a/.eslintrc.json b/.eslintrc.json index de64bd22f8..2c3b7c4564 100644 --- a/.eslintrc.json +++ b/.eslintrc.json @@ -1,7 +1,8 @@ { "extends": "eslint:recommended", "parserOptions": { - "ecmaVersion": 6 + "ecmaVersion": 6, + "sourceType": "module" }, "rules": { "no-console": "off", diff --git a/test/unit/dom-bind.html b/test/unit/dom-bind.html index 1fc1f1d12b..0a7d99568a 100644 --- a/test/unit/dom-bind.html +++ b/test/unit/dom-bind.html @@ -26,7 +26,7 @@ import '../../polymer-legacy.js'; import './dom-bind-elements1.js'; import './dom-bind-elements2.js'; -/* global earlyDomBind earlyBoundChild declaredXBasic1 declaredXBasic2 declarativeDomBind boundTextDiv container needsHost nonUpgrade*/ +/* global earlyDomBind */ earlyDomBind.value = 'hi!'; @@ -79,6 +79,7 @@ suite('dom-bind touched before upgrade', function() { test('value binds top-down', function() { + /* global earlyBoundChild*/ assert.equal(earlyBoundChild.textContent, 'hi!'); }); }); @@ -90,6 +91,7 @@ var el2; setup(function() { + /* global declarativeDomBind declaredXBasic1 declaredXBasic2 */ domBind = declarativeDomBind; el1 = declaredXBasic1; el2 = declaredXBasic2; @@ -129,6 +131,7 @@ test('initial value notifies to dom-bind', function() { assert.equal(domBind.boundText, 'this text is bound'); + /* global boundTextDiv */ assert.equal(boundTextDiv.textContent, 'this text is bound'); }); @@ -208,6 +211,7 @@ }); test('move dom-bind', function( ) { + /* global container */ container.appendChild(domBind); assert.equal(container.firstElementChild, el1); @@ -262,7 +266,7 @@ }); }); - +/* global needsHost nonUpgrade */ suite('timing', function() { test('late-loaded import should block stamping', function() { diff --git a/test/unit/globals.html b/test/unit/globals.html index cccc63e25d..9e5b5d81ee 100644 --- a/test/unit/globals.html +++ b/test/unit/globals.html @@ -15,7 +15,6 @@