deps: update dependencies with lint fixes (#2565)

This commit is contained in:
Niklas von Hertzen
2021-07-11 20:25:22 +08:00
committed by GitHub
parent e7a021ab93
commit b2902ec31c
55 changed files with 14658 additions and 11598 deletions

View File

@ -25,9 +25,9 @@ servers.push(corsApp.listen(8081));
karmaTestRunner()
.then(() => {
servers.forEach(server => server.close());
servers.forEach((server) => server.close());
})
.catch(e => {
.catch((e) => {
console.error(e);
process.exit(1);
});

View File

@ -1,8 +1,8 @@
import nodeResolve from 'rollup-plugin-node-resolve';
import commonjs from 'rollup-plugin-commonjs';
import nodeResolve from '@rollup/plugin-node-resolve';
import commonjs from '@rollup/plugin-commonjs';
import sourceMaps from 'rollup-plugin-sourcemaps';
import typescript from 'rollup-plugin-typescript2';
import json from 'rollup-plugin-json';
import typescript from '@rollup/plugin-typescript';
import json from '@rollup/plugin-json';
import {resolve} from 'path';
const pkg = require('../package.json');
@ -36,14 +36,12 @@ export default {
// Allow json resolution
json(),
// Compile TypeScript files
typescript({useTsconfigDeclarationDir: true, tsconfig: resolve(__dirname, 'tsconfig.json')}),
typescript({
tsconfig: resolve(__dirname, 'tsconfig.json')
}),
// Allow bundling cjs modules (unlike webpack, rollup doesn't understand cjs)
commonjs({
include: 'node_modules/**',
namedModules: {
'node_modules/platform/platform.js': ['name', 'version'],
'node_modules/es6-promise/dist/es6-promise.js': ['Promise']
}
include: 'node_modules/**'
}),
// Resolve source maps to the original source

View File

@ -42,11 +42,11 @@ const uploadResults = (canvas: HTMLCanvasElement, url: string) => {
};
testList
.filter(test => {
.filter((test) => {
return !Array.isArray(ignoredTests[test]) || ignoredTests[test].indexOf(platform.name || '') === -1;
})
.forEach(url => {
describe(url, function() {
.forEach((url) => {
describe(url, function () {
this.timeout(60000);
this.retries(2);
const windowWidth = 800;
@ -58,7 +58,7 @@ testList
testContainer.style.position = 'fixed';
testContainer.style.left = '10000px';
before(done => {
before((done) => {
testContainer.onload = () => done();
testContainer.src = url + '?selenium&run=false&reftest&' + Math.random();

View File

@ -1,6 +1,9 @@
{
"extends": "../tsconfig.json",
"compilerOptions": {
"types": ["node", "mocha"]
}
"types": ["node", "mocha"],
"rootDir": "../",
"declaration": false
},
"include": ["**/*.ts"]
}