Skip to content

Commit

Permalink
Fix ESLint warnings
Browse files Browse the repository at this point in the history
  • Loading branch information
TimvdLippe committed Apr 20, 2018
1 parent 180a92f commit 6d24013
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 7 deletions.
3 changes: 2 additions & 1 deletion .eslintrc.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,8 @@
{
"extends": "eslint:recommended",
"parserOptions": {
"ecmaVersion": 6
"ecmaVersion": 6,
"sourceType": "module"
},
"rules": {
"no-console": "off",
Expand Down
8 changes: 6 additions & 2 deletions test/unit/dom-bind.html
Original file line number Diff line number Diff line change
Expand Up @@ -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!';
</script>

Expand Down Expand Up @@ -79,6 +79,7 @@

suite('dom-bind touched before upgrade', function() {
test('value binds top-down', function() {
/* global earlyBoundChild*/
assert.equal(earlyBoundChild.textContent, 'hi!');
});
});
Expand All @@ -90,6 +91,7 @@
var el2;

setup(function() {
/* global declarativeDomBind declaredXBasic1 declaredXBasic2 */
domBind = declarativeDomBind;
el1 = declaredXBasic1;
el2 = declaredXBasic2;
Expand Down Expand Up @@ -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');
});

Expand Down Expand Up @@ -208,6 +211,7 @@
});

test('move dom-bind', function( ) {
/* global container */
container.appendChild(domBind);

assert.equal(container.firstElementChild, el1);
Expand Down Expand Up @@ -262,7 +266,7 @@
});

});

/* global needsHost nonUpgrade */
suite('timing', function() {

test('late-loaded import should block stamping', function() {
Expand Down
4 changes: 2 additions & 2 deletions test/unit/globals.html
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,6 @@
<script src="../../../../@webcomponents/webcomponentsjs/webcomponents-lite.js"></script>
<script type="module">
import '../../polymer-legacy.js';
/* global origOwnProps:true */
window.origOwnProps = Object.getOwnPropertyNames(window).reduce(function(props, prop) {
return props[prop] = true && props;
}, {});
Expand Down Expand Up @@ -64,8 +63,9 @@

<script type="module">
import '../../polymer-legacy.js';
import { Polymer } from '../../lib/legacy/polymer-fn.js';
import '../../lib/legacy/polymer-fn.js';

/* global origOwnProps */
suite('globals', function() {

var expected = {
Expand Down
2 changes: 0 additions & 2 deletions util/minimalDocument.js
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,6 @@
* subject to an additional IP rights grant found at http://polymer.github.io/PATENTS.txt
*/

'use strict';

const dom5 = require('dom5');
const parse5 = require('parse5');
const {Transform} = require('stream');
Expand Down

0 comments on commit 6d24013

Please sign in to comment.