Skip to content

Commit

Permalink
enforce strictness tests
Browse files Browse the repository at this point in the history
  • Loading branch information
dfreedm committed Mar 4, 2017
1 parent 7f94a66 commit b278977
Show file tree
Hide file tree
Showing 18 changed files with 29 additions and 3 deletions.
5 changes: 3 additions & 2 deletions .eslintrc.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,9 @@
"extends": "eslint:recommended",
"ecmaVersion": 6,
"rules": {
"no-console": 0,
"no-var": "error"
"no-console": "off",
"no-var": "error",
"strict": "error"
},
"env": {
"browser": true,
Expand Down
1 change: 1 addition & 0 deletions lib/elements/array-selector.html
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@

<script>
(function() {
'use strict';

/**
* Element mixin for recording dynamic associations between item paths in a
Expand Down
1 change: 1 addition & 0 deletions lib/elements/dom-bind.html
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@
<script>

(function() {
'use strict';

const domBindBase = Polymer.OptionalMutableData(Polymer.PropertyEffects(HTMLElement));

Expand Down
1 change: 1 addition & 0 deletions lib/elements/dom-if.html
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@
<script>

(function() {
'use strict';

/**
* The `<dom-if>` element will stamp a light-dom `<template>` child when
Expand Down
9 changes: 9 additions & 0 deletions lib/elements/dom-module.html
Original file line number Diff line number Diff line change
@@ -1,3 +1,12 @@
<!--
@license
Copyright (c) 2014 The Polymer Project Authors. All rights reserved.
This code may only be used under the BSD style license found at http://polymer.github.io/LICENSE.txt
The complete set of authors may be found at http://polymer.github.io/AUTHORS.txt
The complete set of contributors may be found at http://polymer.github.io/CONTRIBUTORS.txt
Code distributed by Google as part of the polymer project is also
subject to an additional IP rights grant found at http://polymer.github.io/PATENTS.txt
-->
<link rel="import" href="../utils/boot.html">
<link rel="import" href="../utils/resolve-url.html">
<script>
Expand Down
1 change: 1 addition & 0 deletions lib/legacy/mutable-data-behavior.html
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@

<script>
(function() {
'use strict';

let mutablePropertyChange = Polymer.MutableData._mutablePropertyChange;

Expand Down
1 change: 1 addition & 0 deletions lib/legacy/polymer-fn.html
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@
<script>

(function() {
'use strict';

/**
* Legacy class factory and registration helper for defining Polymer
Expand Down
1 change: 1 addition & 0 deletions lib/legacy/polymer.dom.html
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@
<link rel="import" href="../utils/flush.html">
<script>
(function() {
'use strict';

const p = Element.prototype;
const normalizedMatchesSelector = p.matches || p.matchesSelector ||
Expand Down
1 change: 1 addition & 0 deletions lib/mixins/element-mixin.html
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@

<script>
(function() {
'use strict';
/**
* @typedef Object<string, {
* value: *,
Expand Down
1 change: 1 addition & 0 deletions lib/mixins/mutable-data.html
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@

<script>
(function() {
'use strict';

// Common implementation for mixin & behavior
function mutablePropertyChange(inst, property, value, old, mutableData) {
Expand Down
1 change: 1 addition & 0 deletions lib/utils/boot.html
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@
-->
<script>
(function() {
'use strict';

const userPolymer = window.Polymer;

Expand Down
1 change: 1 addition & 0 deletions lib/utils/case-map.html
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@
<link rel="import" href="boot.html">
<script>
(function() {
'use strict';

const caseMap = {};
const DASH_TO_CAMEL = /-[a-z]/g;
Expand Down
1 change: 1 addition & 0 deletions lib/utils/flattened-nodes-observer.html
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@
<link rel="import" href="../utils/async.html">
<script>
(function() {
'use strict';

function isSlot(node) {
return (node.localName === 'slot');
Expand Down
1 change: 1 addition & 0 deletions lib/utils/flush.html
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@
<link rel="import" href="boot.html">
<script>
(function() {
'use strict';

let debouncerQueue = [];

Expand Down
1 change: 1 addition & 0 deletions lib/utils/path.html
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@

<script>
(function() {
'use strict';

/**
* Module with utilities for manipulating structured data path strings.
Expand Down
1 change: 1 addition & 0 deletions lib/utils/resolve-url.html
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@
<script>

(function() {
'use strict';

let CSS_URL_RX = /(url\()([^)]*)(\))/g;
let ABS_URL = /(^\/)|(^#)|(^[\w-\d]*:)/;
Expand Down
1 change: 1 addition & 0 deletions lib/utils/unresolved.html
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@
-->
<script>
(function() {
'use strict';

// unresolved

Expand Down
3 changes: 2 additions & 1 deletion test/.eslintrc.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,8 @@
"mocha": true
},
"rules": {
"no-var": "off"
"no-var": "off",
"strict": "off"
},
"globals": {
"assert": true,
Expand Down

0 comments on commit b278977

Please sign in to comment.