Replace prettier and eslint with oxfmt and oxlint (#61)

This commit is contained in:
Simon Sawicki
2026-05-24 21:30:13 +02:00
committed by GitHub
parent 64067b031b
commit d60b8244e7
19 changed files with 1382 additions and 3505 deletions

View File

@@ -1,4 +1,5 @@
import { parse, type ESTree } from "meriyah";
import { type DeepPartial } from "./types.ts";
export function matchesStructure<T extends ESTree.Node>(

View File

@@ -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

View File

@@ -1,5 +1,5 @@
import { parse } from "meriyah";
import { generate } from "astring";
import { parse } from "meriyah";
export const lib = {
meriyah: { parse },

View File

@@ -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 =

View File

@@ -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: [

View File

@@ -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();

View File

@@ -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);

View File

@@ -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}` : ""}`,
);
}