ESLint cannot parse this project's TypeScript: typescript@7 is the native port with no JavaScript compiler API, which every ESLint TypeScript parser needs, and typescript-eslint refuses to install with a >=4.8.4 <6.1.0 peer. oxlint parses TypeScript without the compiler API, so it lints the .ts and the .js together in about 20ms over the whole repo, and it runs the correctness category as errors. It found one real thing on the first run: the drag harness built its fetch options with a body key even for GET. The four opinionated rules it also flagged are off with their reasoning in the README, since oxlint's config takes no comments. lint is back in deploy.sh's checks, and the editor has lint tasks and the oxc extension recommendation. Prettier is unchanged.
41 lines
1.1 KiB
JSON
41 lines
1.1 KiB
JSON
{
|
|
"name": "menu-admin",
|
|
"version": "0.1.0",
|
|
"private": true,
|
|
"type": "module",
|
|
"engines": {
|
|
"node": ">=24"
|
|
},
|
|
"scripts": {
|
|
"start": "node src/server.ts",
|
|
"predev": "node scripts/dev-env.ts",
|
|
"dev": "SECURE_COOKIES=false node --watch src/server.ts",
|
|
"dev:env": "node scripts/dev-env.ts",
|
|
"seed": "node scripts/seed-dev.ts",
|
|
"check-site": "node scripts/check-site.ts",
|
|
"verify": "node src/cli/verify.ts",
|
|
"repair": "node src/cli/repair.ts",
|
|
"typecheck": "tsc --noEmit",
|
|
"lint": "oxlint",
|
|
"lint:fix": "oxlint --fix",
|
|
"format": "prettier --write .",
|
|
"format:check": "prettier --check .",
|
|
"test": "node --test test/*.test.ts",
|
|
"check-dnd": "node scripts/check-dnd.mjs"
|
|
},
|
|
"dependencies": {
|
|
"@fastify/cookie": "^11.1.2",
|
|
"@fastify/formbody": "^9.0.0",
|
|
"@fastify/multipart": "^10.1.2",
|
|
"@fastify/static": "^10.1.4",
|
|
"fastify": "^5.12.5",
|
|
"sharp": "^0.35.4"
|
|
},
|
|
"devDependencies": {
|
|
"@types/node": "^26.6.2",
|
|
"oxlint": "^1.85.0",
|
|
"prettier": "^3.9.8",
|
|
"typescript": "^7.0.2"
|
|
}
|
|
}
|