swap prettier and eslint of oxfmt and oxlint

This commit is contained in:
2026-09-28 21:43:13 +02:00
parent ac3db34079
commit 33f6bf12b0
6 changed files with 313 additions and 2224 deletions
+4
View File
@@ -0,0 +1,4 @@
{
"$schema": "./node_modules/oxfmt/configuration_schema.json",
"ignorePatterns": []
}
+15
View File
@@ -0,0 +1,15 @@
{
"$schema": "./node_modules/oxlint/configuration_schema.json",
"plugins": [
"typescript",
"unicorn",
"oxc"
],
"categories": {
"correctness": "error"
},
"rules": {},
"env": {
"builtin": true
}
}
-9
View File
@@ -1,9 +0,0 @@
{
"trailingComma": "all",
"bracketSpacing": true,
"plugins": ["@trivago/prettier-plugin-sort-imports", "prettier-plugin-tailwindcss"],
"importOrder": ["^react$", "^@?\\w", "^@\\\\", "<THIRD_PARTY_MODULES>", "^\\.\\.", "^\\."],
"importOrderSeparation": true,
"importOrderSortSpecifiers": true,
"tailwindFunctions": ["twMerge"]
}
-33
View File
@@ -1,33 +0,0 @@
import nextCoreWebVitals from "eslint-config-next/core-web-vitals";
import prettier from "eslint-config-prettier";
import reactHooks from "eslint-plugin-react-hooks";
import tseslint from "typescript-eslint";
export default [
{
ignores: [
".next/**",
"out/**",
"build/**",
"next-env.d.ts",
"public/sw.js",
"public/workbox-*.js",
"public/swe-worker-*.js",
],
},
...nextCoreWebVitals,
{
plugins: {
"@typescript-eslint": tseslint.plugin,
"react-hooks": reactHooks,
},
rules: {
"@typescript-eslint/no-unused-vars": "warn",
"@typescript-eslint/no-unused-expressions": "warn",
"react-hooks/immutability": "warn",
"react-hooks/refs": "warn",
"react-hooks/set-state-in-effect": "warn",
},
},
prettier,
];
+6 -10
View File
@@ -7,11 +7,11 @@
"dev": "next dev", "dev": "next dev",
"build": "next build --webpack", "build": "next build --webpack",
"start": "next start", "start": "next start",
"lint": "eslint .", "lint": "oxlint",
"typeCheck": "tsc -p ./tsconfig.json", "typeCheck": "tsc -p ./tsconfig.json",
"postinstall": "patch-package", "postinstall": "patch-package",
"format": "prettier --check \"**/*.{js,jsx,ts,tsx}\"", "format": "oxfmt --check",
"format:fix": "prettier --write \"**/*.{js,jsx,ts,tsx}\"" "format:fix": "oxfmt"
}, },
"dependencies": { "dependencies": {
"@auth/mongodb-adapter": "^3.5.2", "@auth/mongodb-adapter": "^3.5.2",
@@ -23,7 +23,6 @@
"@serwist/next": "^9.5.12", "@serwist/next": "^9.5.12",
"@socialgouv/matomo-next": "^1.10.0", "@socialgouv/matomo-next": "^1.10.0",
"@tanstack/react-query": "^5.29.0", "@tanstack/react-query": "^5.29.0",
"@trivago/prettier-plugin-sort-imports": "^4.2.0",
"@turf/boolean-point-in-polygon": "^7.0.0-alpha.114", "@turf/boolean-point-in-polygon": "^7.0.0-alpha.114",
"@types/node": "^22.7.2", "@types/node": "^22.7.2",
"autoprefixer": "^10.4.16", "autoprefixer": "^10.4.16",
@@ -44,6 +43,8 @@
"next-intl": "^4.14.7", "next-intl": "^4.14.7",
"next-safe-action": "^7.9.3", "next-safe-action": "^7.9.3",
"nodemailer": "^6.9.12", "nodemailer": "^6.9.12",
"oxfmt": "^0.71.0",
"oxlint": "^1.86.0",
"postcss": "^8.4.47", "postcss": "^8.4.47",
"react": "^19.3.0", "react": "^19.3.0",
"react-date-range": "^2.0.1", "react-date-range": "^2.0.1",
@@ -78,12 +79,7 @@
"@types/react-date-range": "^1.4.9", "@types/react-date-range": "^1.4.9",
"@types/react-dom": "^19.3.0", "@types/react-dom": "^19.3.0",
"@types/react-input-mask": "^3.0.2", "@types/react-input-mask": "^3.0.2",
"eslint": "^9.0.0", "patch-package": "^8.0.1"
"eslint-config-next": "^16.3.6",
"eslint-config-prettier": "^9.0.0",
"patch-package": "^8.0.1",
"prettier": "^3.1.1",
"prettier-plugin-tailwindcss": "^0.6.8"
}, },
"packageManager": "yarn@1.22.22+sha1.ac34549e6aa8e7ead463a7407e1c7390f61a6610" "packageManager": "yarn@1.22.22+sha1.ac34549e6aa8e7ead463a7407e1c7390f61a6610"
} }
+288 -2172
View File
File diff suppressed because it is too large Load Diff