Skip to content

Commit 408d3b6

Browse files
Jake ChampionJakeChampion
Jake Champion
authored andcommittedJul 17, 2023
dont use github eslint
1 parent afd09a7 commit 408d3b6

12 files changed

+27
-51
lines changed
 

‎.eslintignore

-1
Original file line numberDiff line numberDiff line change
@@ -1,2 +1 @@
11
node_modules
2-
dist/**

‎.eslintrc.js

+14
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
/* eslint-env node */
2+
module.exports = {
3+
"env": {
4+
"browser": true,
5+
"es2021": true
6+
},
7+
"extends": "eslint:recommended",
8+
"parserOptions": {
9+
"ecmaVersion": 12,
10+
"sourceType": "module"
11+
},
12+
"rules": {
13+
}
14+
};

‎.eslintrc.json

-48
This file was deleted.

‎fetch.js

+2
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
/* eslint-disable no-prototype-builtins */
12
var global =
23
(typeof globalThis !== 'undefined' && globalThis) ||
34
(typeof self !== 'undefined' && self) ||
@@ -225,6 +226,7 @@ function Body() {
225226
semantic of setting Request.bodyUsed in the constructor before
226227
_initBody is called.
227228
*/
229+
// eslint-disable-next-line no-self-assign
228230
this.bodyUsed = this.bodyUsed
229231
this._bodyInit = body
230232
if (!body) {

‎package.json

-1
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,6 @@
1010
"abortcontroller-polyfill": "^1.1.9",
1111
"chai": "^4.1.2",
1212
"eslint": "^7.20.0",
13-
"eslint-plugin-github": "^4.1.1",
1413
"karma": "^3.0.0",
1514
"karma-chai": "^0.1.0",
1615
"karma-chrome-launcher": "^2.2.0",

‎prettier.config.js

+1
Original file line numberDiff line numberDiff line change
@@ -1 +1,2 @@
1+
/* eslint-env node */
12
module.exports = require('eslint-plugin-github/prettier.config')

‎test/karma-worker.config.js

+1
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
/* eslint-env node */
12
const parentConfig = require('./karma.config')
23

34
module.exports = function(config) {

‎test/karma.config.js

+1
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
/* eslint-env node */
12
const serverEndpoints = require('./server')
23

34
module.exports = function(config) {

‎test/server.js

+1
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
/* eslint-env node */
12
const url = require('url')
23
const querystring = require('querystring')
34

‎test/test.js

+3-1
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
/* eslint-env mocha */
2+
/* globals chai assert FileReaderSync assert WHATWGFetch */
13
var IEorEdge = /Edge\//.test(navigator.userAgent) || /MSIE/.test(navigator.userAgent)
24
var Chrome = /Chrome\//.test(navigator.userAgent) && !IEorEdge
35
var Safari = /Safari\//.test(navigator.userAgent) && !IEorEdge && !Chrome
@@ -104,7 +106,7 @@ if (!self.fetch.polyfill) {
104106
var slice = Array.prototype.slice
105107

106108
function featureDependent(testOrSuite, condition) {
107-
;(condition ? testOrSuite : testOrSuite.skip).apply(this, slice.call(arguments, 2))
109+
(condition ? testOrSuite : testOrSuite.skip).apply(this, slice.call(arguments, 2))
108110
}
109111

110112
exercise.forEach(function(exerciseMode) {

‎test/worker-adapter.js

+2
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
/* eslint-env mocha */
2+
/* globals Mocha */
13
var mochaRun = mocha.run
24
mocha.run = function() {}
35

‎test/worker.js

+2
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
/* eslint-env worker */
2+
/* globals mocha chai */
13
importScripts('/base/node_modules/mocha/mocha.js')
24
importScripts('/base/node_modules/chai/chai.js')
35

0 commit comments

Comments
 (0)
Please sign in to comment.