Skip to content

Commit

Permalink
simplify linting test files
Browse files Browse the repository at this point in the history
  • Loading branch information
JakeChampion committed Jul 1, 2020
1 parent c098942 commit a62d207
Show file tree
Hide file tree
Showing 108 changed files with 124 additions and 106 deletions.
12 changes: 12 additions & 0 deletions polyfills/.eslintrc
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,18 @@
"files": ["update.task.js"],
"parserOptions": {
"ecmaVersion": 2018
},
"env": {
"es6": true,
"browser": false,
"node": true
}
},
{
"files": ["tests.js", "test/*"],
"env": {
"mocha": true,
"browser": true
}
}
],
Expand Down
1 change: 0 additions & 1 deletion polyfills/AbortController/tests.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
/* eslint-env mocha */
/* globals proclaim */

describe('AbortSignal', function () {
Expand Down
1 change: 0 additions & 1 deletion polyfills/Array/from/tests.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
/* eslint-env mocha */
/* globals proclaim, Map, Symbol, Set */

it('is a function', function () {
Expand Down
1 change: 0 additions & 1 deletion polyfills/Array/prototype/@@iterator/tests.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
/* eslint-env mocha */
/* globals proclaim, Symbol */

it('is an alias to Array.prototype.values', function () {
Expand Down
1 change: 0 additions & 1 deletion polyfills/Array/prototype/copyWithin/tests.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
/* eslint-env mocha */
/* globals proclaim */

it('is a function', function () {
Expand Down
2 changes: 1 addition & 1 deletion polyfills/Array/prototype/find/tests.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
/* eslint-env mocha */

/* globals proclaim */

it('is a function', function () {
Expand Down
2 changes: 1 addition & 1 deletion polyfills/Array/prototype/findIndex/tests.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
/* eslint-env mocha */

/* globals proclaim */

it('is a function', function () {
Expand Down
2 changes: 1 addition & 1 deletion polyfills/Array/prototype/flat/tests.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
/* eslint-env mocha */

/* globals proclaim, Symbol */

var supportsStrictModeTests = (function () {
Expand Down
2 changes: 1 addition & 1 deletion polyfills/Array/prototype/flatMap/tests.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
/* eslint-env mocha */

/* globals proclaim */

it('is a function', function () {
Expand Down
2 changes: 1 addition & 1 deletion polyfills/Array/prototype/forEach/tests.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
/* eslint-env mocha */

/* globals proclaim */

it('is a function', function () {
Expand Down
2 changes: 1 addition & 1 deletion polyfills/Array/prototype/includes/tests.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
/* eslint-env mocha */

/* globals proclaim */


Expand Down
2 changes: 1 addition & 1 deletion polyfills/Array/prototype/indexOf/tests.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
/* eslint-env mocha */

/* globals proclaim */

it('is a function', function () {
Expand Down
2 changes: 1 addition & 1 deletion polyfills/Array/prototype/keys/tests.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
/* eslint-env mocha */

/* globals proclaim */

it('is a function', function () {
Expand Down
2 changes: 1 addition & 1 deletion polyfills/Array/prototype/lastIndexOf/tests.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
/* eslint-env mocha */

/* globals proclaim */

it('is a function', function () {
Expand Down
2 changes: 1 addition & 1 deletion polyfills/Array/prototype/map/tests.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
/* eslint-env mocha */

/* globals proclaim */

it('is a function', function () {
Expand Down
2 changes: 1 addition & 1 deletion polyfills/Array/prototype/reduce/tests.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
/* eslint-env mocha */

/* globals proclaim */

it('is a function', function () {
Expand Down
2 changes: 1 addition & 1 deletion polyfills/Array/prototype/reduceRight/tests.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
/* eslint-env mocha */

/* globals proclaim */

it('is a function', function () {
Expand Down
2 changes: 1 addition & 1 deletion polyfills/Array/prototype/some/tests.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
/* eslint-env mocha */

/* globals proclaim */

it('is a function', function () {
Expand Down
2 changes: 1 addition & 1 deletion polyfills/Array/prototype/values/tests.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
/* eslint-env mocha */

/* globals proclaim */

it('is a function', function () {
Expand Down
2 changes: 1 addition & 1 deletion polyfills/Date/prototype/toISOString/tests.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
/* eslint-env mocha */

/* globals proclaim */

it('is a function', function () {
Expand Down
2 changes: 1 addition & 1 deletion polyfills/Function/prototype/bind/tests.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
/* eslint-env mocha */

/* globals proclaim */

it('is a function', function () {
Expand Down
2 changes: 1 addition & 1 deletion polyfills/Map/tests.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
/* eslint-env mocha */

/* globals proclaim, Map, Symbol */

it('is a function', function () {
Expand Down
2 changes: 1 addition & 1 deletion polyfills/Math/acosh/tests.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
/* eslint-env mocha */

/* globals proclaim */

it('is a function', function () {
Expand Down
2 changes: 1 addition & 1 deletion polyfills/Math/asinh/tests.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
/* eslint-env mocha */

/* globals proclaim */

it('is a function', function () {
Expand Down
2 changes: 1 addition & 1 deletion polyfills/Math/atanh/tests.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
/* eslint-env mocha */

/* globals proclaim */

it('is a function', function () {
Expand Down
2 changes: 1 addition & 1 deletion polyfills/Math/cbrt/tests.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
/* eslint-env mocha */

/* globals proclaim */

it('is a function', function () {
Expand Down
2 changes: 1 addition & 1 deletion polyfills/Math/clz32/tests.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
/* eslint-env mocha */

/* globals proclaim */

it('is a function', function () {
Expand Down
2 changes: 1 addition & 1 deletion polyfills/Math/cosh/tests.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
/* eslint-env mocha */

/* globals proclaim */

it('is a function', function () {
Expand Down
2 changes: 1 addition & 1 deletion polyfills/Math/expm1/tests.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
/* eslint-env mocha */

/* globals proclaim */

it('is a function', function () {
Expand Down
2 changes: 1 addition & 1 deletion polyfills/Math/hypot/tests.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
/* eslint-env mocha */

/* globals proclaim */

it('is a function', function () {
Expand Down
2 changes: 1 addition & 1 deletion polyfills/Math/imul/tests.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
/* eslint-env mocha */

/* globals proclaim */
it('is a function', function () {
proclaim.isFunction(Math.imul);
Expand Down
2 changes: 1 addition & 1 deletion polyfills/Math/log10/tests.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
/* eslint-env mocha */

/* globals proclaim */

it('is a function', function () {
Expand Down
2 changes: 1 addition & 1 deletion polyfills/Math/log1p/tests.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
/* eslint-env mocha */

/* globals proclaim */

it('is a function', function () {
Expand Down
2 changes: 1 addition & 1 deletion polyfills/Math/log2/tests.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
/* eslint-env mocha */

/* globals proclaim */

it('is a function', function () {
Expand Down
2 changes: 1 addition & 1 deletion polyfills/Math/sign/tests.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
/* eslint-env mocha */

/* globals proclaim */

it('is a function', function () {
Expand Down
2 changes: 1 addition & 1 deletion polyfills/Math/sinh/tests.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
/* eslint-env mocha */

/* globals proclaim */

it('is a function', function () {
Expand Down
2 changes: 1 addition & 1 deletion polyfills/Math/tanh/tests.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
/* eslint-env mocha */

/* globals proclaim */

it('is a function', function () {
Expand Down
2 changes: 1 addition & 1 deletion polyfills/Math/trunc/tests.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
/* eslint-env mocha */

/* globals proclaim */

it('is a function', function () {
Expand Down
2 changes: 1 addition & 1 deletion polyfills/Number/isFinite/tests.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
/* eslint-env mocha */

/* globals proclaim */

it('is a function', function () {
Expand Down
2 changes: 1 addition & 1 deletion polyfills/Number/isInteger/tests.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
/* eslint-env mocha */

/* globals proclaim */

it('is a function', function () {
Expand Down
2 changes: 1 addition & 1 deletion polyfills/Number/isNaN/tests.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
/* eslint-env mocha */

/* globals proclaim */

it('is a function', function () {
Expand Down
2 changes: 1 addition & 1 deletion polyfills/Number/isSafeInteger/tests.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
/* eslint-env mocha */

/* globals proclaim */

it('is a function', function () {
Expand Down
2 changes: 1 addition & 1 deletion polyfills/Number/parseFloat/tests.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
/* eslint-env mocha */

/* globals proclaim */

it('is a function', function () {
Expand Down
2 changes: 1 addition & 1 deletion polyfills/Number/parseInt/tests.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/* eslint-disable radix */
/* eslint-env mocha */

/* globals proclaim */

it('is a function', function () {
Expand Down
2 changes: 1 addition & 1 deletion polyfills/Object/defineProperties/tests.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
/* eslint-env mocha */

/* globals proclaim */

it('is a function', function () {
Expand Down
2 changes: 1 addition & 1 deletion polyfills/Object/entries/tests.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
/* eslint-env mocha */

/* globals proclaim, Symbol */

it('is a function', function () {
Expand Down
2 changes: 1 addition & 1 deletion polyfills/Object/freeze/tests.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
/* eslint-env mocha */

/* globals proclaim */

it('is a function', function () {
Expand Down
2 changes: 1 addition & 1 deletion polyfills/Object/fromEntries/tests.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
/* eslint-env mocha */

/* globals proclaim, Symbol */

it('is a function', function () {
Expand Down
2 changes: 1 addition & 1 deletion polyfills/Object/getOwnPropertyNames/tests.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
/* eslint-env mocha */

/* globals proclaim */

it('is a function', function () {
Expand Down
2 changes: 1 addition & 1 deletion polyfills/Object/getPrototypeOf/tests.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
/* eslint-env mocha */

/* globals proclaim */

it('is a function', function () {
Expand Down
2 changes: 1 addition & 1 deletion polyfills/Object/is/tests.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
/* eslint-env mocha */

/* globals proclaim */

it('is a function', function () {
Expand Down
2 changes: 1 addition & 1 deletion polyfills/Object/setPrototypeOf/tests.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
/* eslint-env mocha */

/* globals proclaim */

it('is a function', function () {
Expand Down
2 changes: 1 addition & 1 deletion polyfills/Object/values/tests.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
/* eslint-env mocha */

/* globals proclaim */

it('is a function', function () {
Expand Down
2 changes: 1 addition & 1 deletion polyfills/Promise/prototype/finally/tests.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
/* eslint-env mocha */

/* globals proclaim, Promise */

it('is a function', function () {
Expand Down
2 changes: 1 addition & 1 deletion polyfills/Promise/tests.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
/* eslint-env mocha */

/* globals proclaim, Promise */

it('is a function', function () {
Expand Down
2 changes: 1 addition & 1 deletion polyfills/Reflect/apply/tests.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
/* eslint-env mocha */

/* globals proclaim, Reflect, Symbol */

it('is a function', function () {
Expand Down
2 changes: 1 addition & 1 deletion polyfills/Reflect/construct/tests.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
/* eslint-env mocha */

/* globals proclaim, Reflect */

it('is a function', function () {
Expand Down
2 changes: 1 addition & 1 deletion polyfills/Reflect/defineProperty/tests.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
/* eslint-env mocha */

/* globals proclaim, Reflect, Symbol */

it('is a function', function () {
Expand Down
2 changes: 1 addition & 1 deletion polyfills/Reflect/deleteProperty/tests.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
/* eslint-env mocha */

/* globals proclaim, Reflect, Symbol */

it('is a function', function () {
Expand Down
2 changes: 1 addition & 1 deletion polyfills/Reflect/get/tests.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
/* eslint-env mocha */

/* globals proclaim, Reflect, Symbol */

it('is a function', function () {
Expand Down
2 changes: 1 addition & 1 deletion polyfills/Reflect/getOwnPropertyDescriptor/tests.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
/* eslint-env mocha */

/* globals proclaim, Reflect, Symbol */

it('is a function', function () {
Expand Down
2 changes: 1 addition & 1 deletion polyfills/Reflect/getPrototypeOf/tests.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
/* eslint-env mocha */

/* globals proclaim, Reflect, Symbol */

it('is a function', function () {
Expand Down
2 changes: 1 addition & 1 deletion polyfills/Reflect/has/tests.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
/* eslint-env mocha */

/* globals proclaim, Reflect, Symbol */

it('is a function', function () {
Expand Down
2 changes: 1 addition & 1 deletion polyfills/Reflect/isExtensible/tests.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
/* eslint-env mocha */

/* globals proclaim, Reflect, Symbol */

it('is a function', function () {
Expand Down
2 changes: 1 addition & 1 deletion polyfills/Reflect/ownKeys/tests.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
/* eslint-env mocha */

/* globals proclaim, Reflect, Symbol */

it('is a function', function () {
Expand Down

0 comments on commit a62d207

Please sign in to comment.