chore: replace eslint & prettier with oxc

This commit is contained in:
dwelle
2026-01-24 22:14:29 +01:00
parent 60759d314d
commit be9981bda5
19 changed files with 170 additions and 133 deletions
+2 -12
View File
@@ -1,14 +1,4 @@
const { CLIEngine } = require("eslint");
// see https://github.com/okonet/lint-staged#how-can-i-ignore-files-from-eslintignore-
// for explanation
const cli = new CLIEngine({});
module.exports = {
"*.{js,ts,tsx}": files => {
return (
"eslint --max-warnings=0 --fix " + files.filter(file => !cli.isPathIgnored(file)).join(" ")
);
},
"*.{css,scss,json,md,html,yml}": ["prettier --write"],
"*.{js,ts,tsx}": ["oxlint --fix", "oxfmt --write"],
"*.{css,scss,json,md,html,yml}": ["oxfmt --write"],
};