mirror of
https://github.com/yt-dlp/ejs.git
synced 2026-06-30 09:55:14 +00:00
Replace prettier and eslint with oxfmt and oxlint (#61)
This commit is contained in:
@@ -1,4 +1,5 @@
|
||||
import { parse, type ESTree } from "meriyah";
|
||||
|
||||
import { type DeepPartial } from "./types.ts";
|
||||
|
||||
export function matchesStructure<T extends ESTree.Node>(
|
||||
|
||||
@@ -1,9 +1,11 @@
|
||||
import { argv } from "node:process";
|
||||
|
||||
import { generate } from "astring";
|
||||
import { parse } from "meriyah";
|
||||
|
||||
import { getSolutions, modifyPlayer } from "./solvers.ts";
|
||||
import { getIO } from "./test/io.ts";
|
||||
import { downloadCached } from "./test/utils.ts";
|
||||
import { argv } from "node:process";
|
||||
import { getSolutions, modifyPlayer } from "./solvers.ts";
|
||||
import { generate } from "astring";
|
||||
|
||||
const data = await (
|
||||
argv.length > 3
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
import { parse } from "meriyah";
|
||||
import { generate } from "astring";
|
||||
import { parse } from "meriyah";
|
||||
|
||||
export const lib = {
|
||||
meriyah: { parse },
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
import { getFromPrepared, preprocessPlayer } from "./solvers.ts";
|
||||
import { isOneOf } from "../../utils.ts";
|
||||
import { getFromPrepared, preprocessPlayer } from "./solvers.ts";
|
||||
|
||||
export default function main(input: Input): Output {
|
||||
const preprocessedPlayer =
|
||||
|
||||
@@ -1,7 +1,8 @@
|
||||
import { type ESTree } from "meriyah";
|
||||
import { generate } from "astring";
|
||||
import { matchesStructure, generateArrowFunction } from "../../utils.ts";
|
||||
import { type ESTree } from "meriyah";
|
||||
|
||||
import { type DeepPartial } from "../../types.ts";
|
||||
import { matchesStructure, generateArrowFunction } from "../../utils.ts";
|
||||
|
||||
const identifier: DeepPartial<ESTree.Node> = {
|
||||
or: [
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
import { getFromPrepared, preprocessPlayer } from "./solvers.ts";
|
||||
import { getIO } from "./test/io.ts";
|
||||
import { players, tests } from "./test/tests.ts";
|
||||
import { getCachePath } from "./test/utils.ts";
|
||||
import { getIO } from "./test/io.ts";
|
||||
|
||||
const io = await getIO();
|
||||
|
||||
|
||||
@@ -1,8 +1,9 @@
|
||||
import { type ESTree, parse } from "meriyah";
|
||||
import { generate } from "astring";
|
||||
import { type ESTree, parse } from "meriyah";
|
||||
|
||||
import { generateArrowFunction } from "../../utils.ts";
|
||||
import { extract } from "./nsig.ts";
|
||||
import { setupNodes } from "./setup.ts";
|
||||
import { generateArrowFunction } from "../../utils.ts";
|
||||
|
||||
export function preprocessPlayer(data: string): string {
|
||||
const program = parse(data);
|
||||
|
||||
@@ -83,8 +83,6 @@ async function _getIO(): Promise<IO> {
|
||||
};
|
||||
}
|
||||
throw new Error(
|
||||
`unsupported runtime for testing${
|
||||
navigator.userAgent ? `: ${navigator.userAgent}` : ""
|
||||
}`,
|
||||
`unsupported runtime for testing${navigator.userAgent ? `: ${navigator.userAgent}` : ""}`,
|
||||
);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user