提交 408d3b60 编写于 作者: J Jake Champion 提交者: Jake Champion

dont use github eslint

上级 afd09a7e
/* eslint-env node */
module.exports = {
"env": {
"browser": true,
"es2021": true
},
"extends": "eslint:recommended",
"parserOptions": {
"ecmaVersion": 12,
"sourceType": "module"
},
"rules": {
}
};
{
"parserOptions": {
"ecmaVersion": 2015,
"sourceType": "module"
},
"globals": {
"WHATWGFetch": true,
"ArrayBuffer": true,
"DataView": true,
"Promise": true,
"Symbol": true,
"Uint8Array": true,
"globalThis": true
},
"extends": [
"plugin:github/browser"
],
"rules": {
"object-shorthand": "off"
},
"overrides": [
{
"files": ["test/*.js"],
"env": {
"browser": true,
"mocha": true
},
"globals": {
"assert": true,
"chai": true,
"FileReaderSync": true,
"Mocha": true
}
},
{
"files": ["test/{karma,server}*.js"],
"env": {
"node": true
}
},
{
"files": ["test/worker.js"],
"env": {
"worker": true
}
}
]
}
/* eslint-disable no-prototype-builtins */
var global =
(typeof globalThis !== 'undefined' && globalThis) ||
(typeof self !== 'undefined' && self) ||
......@@ -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) {
......
/* eslint-env node */
module.exports = require('eslint-plugin-github/prettier.config')
/* eslint-env node */
const parentConfig = require('./karma.config')
module.exports = function(config) {
......
/* eslint-env node */
const serverEndpoints = require('./server')
module.exports = function(config) {
......
/* eslint-env node */
const url = require('url')
const querystring = require('querystring')
......
/* 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
......@@ -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) {
......
/* eslint-env mocha */
/* globals Mocha */
var mochaRun = mocha.run
mocha.run = function() {}
......
/* eslint-env worker */
/* globals mocha chai */
importScripts('/base/node_modules/mocha/mocha.js')
importScripts('/base/node_modules/chai/chai.js')
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册