Skip to content

Commit

Permalink
dont use github eslint
Browse files Browse the repository at this point in the history
  • Loading branch information
JakeChampion committed Jul 17, 2023
1 parent afd09a7 commit 408d3b6
Show file tree
Hide file tree
Showing 12 changed files with 27 additions and 51 deletions.
1 change: 0 additions & 1 deletion .eslintignore
@@ -1,2 +1 @@
node_modules
dist/**
14 changes: 14 additions & 0 deletions .eslintrc.js
@@ -0,0 +1,14 @@
/* eslint-env node */
module.exports = {
"env": {
"browser": true,
"es2021": true
},
"extends": "eslint:recommended",
"parserOptions": {
"ecmaVersion": 12,
"sourceType": "module"
},
"rules": {
}
};
48 changes: 0 additions & 48 deletions .eslintrc.json

This file was deleted.

2 changes: 2 additions & 0 deletions fetch.js
@@ -1,3 +1,4 @@
/* eslint-disable no-prototype-builtins */
var global =
(typeof globalThis !== 'undefined' && globalThis) ||
(typeof self !== 'undefined' && self) ||
Expand Down Expand Up @@ -225,6 +226,7 @@ function Body() {
semantic of setting Request.bodyUsed in the constructor before
_initBody is called.
*/
// eslint-disable-next-line no-self-assign
this.bodyUsed = this.bodyUsed
this._bodyInit = body
if (!body) {
Expand Down
1 change: 0 additions & 1 deletion package.json
Expand Up @@ -10,7 +10,6 @@
"abortcontroller-polyfill": "^1.1.9",
"chai": "^4.1.2",
"eslint": "^7.20.0",
"eslint-plugin-github": "^4.1.1",
"karma": "^3.0.0",
"karma-chai": "^0.1.0",
"karma-chrome-launcher": "^2.2.0",
Expand Down
1 change: 1 addition & 0 deletions prettier.config.js
@@ -1 +1,2 @@
/* eslint-env node */
module.exports = require('eslint-plugin-github/prettier.config')
1 change: 1 addition & 0 deletions test/karma-worker.config.js
@@ -1,3 +1,4 @@
/* eslint-env node */
const parentConfig = require('./karma.config')

module.exports = function(config) {
Expand Down
1 change: 1 addition & 0 deletions test/karma.config.js
@@ -1,3 +1,4 @@
/* eslint-env node */
const serverEndpoints = require('./server')

module.exports = function(config) {
Expand Down
1 change: 1 addition & 0 deletions test/server.js
@@ -1,3 +1,4 @@
/* eslint-env node */
const url = require('url')
const querystring = require('querystring')

Expand Down
4 changes: 3 additions & 1 deletion test/test.js
@@ -1,3 +1,5 @@
/* eslint-env mocha */
/* globals chai assert FileReaderSync assert WHATWGFetch */
var IEorEdge = /Edge\//.test(navigator.userAgent) || /MSIE/.test(navigator.userAgent)
var Chrome = /Chrome\//.test(navigator.userAgent) && !IEorEdge
var Safari = /Safari\//.test(navigator.userAgent) && !IEorEdge && !Chrome
Expand Down Expand Up @@ -104,7 +106,7 @@ if (!self.fetch.polyfill) {
var slice = Array.prototype.slice

function featureDependent(testOrSuite, condition) {
;(condition ? testOrSuite : testOrSuite.skip).apply(this, slice.call(arguments, 2))
(condition ? testOrSuite : testOrSuite.skip).apply(this, slice.call(arguments, 2))
}

exercise.forEach(function(exerciseMode) {
Expand Down
2 changes: 2 additions & 0 deletions test/worker-adapter.js
@@ -1,3 +1,5 @@
/* eslint-env mocha */
/* globals Mocha */
var mochaRun = mocha.run
mocha.run = function() {}

Expand Down
2 changes: 2 additions & 0 deletions test/worker.js
@@ -1,3 +1,5 @@
/* eslint-env worker */
/* globals mocha chai */
importScripts('/base/node_modules/mocha/mocha.js')
importScripts('/base/node_modules/chai/chai.js')

Expand Down

0 comments on commit 408d3b6

Please sign in to comment.