mirror of
https://github.com/TheRealOwenRees/echecsfrance.git
synced 2026-11-18 07:22:06 +00:00
swap prettier and eslint of oxfmt and oxlint
This commit is contained in:
@@ -0,0 +1,4 @@
|
||||
{
|
||||
"$schema": "./node_modules/oxfmt/configuration_schema.json",
|
||||
"ignorePatterns": []
|
||||
}
|
||||
@@ -0,0 +1,15 @@
|
||||
{
|
||||
"$schema": "./node_modules/oxlint/configuration_schema.json",
|
||||
"plugins": [
|
||||
"typescript",
|
||||
"unicorn",
|
||||
"oxc"
|
||||
],
|
||||
"categories": {
|
||||
"correctness": "error"
|
||||
},
|
||||
"rules": {},
|
||||
"env": {
|
||||
"builtin": true
|
||||
}
|
||||
}
|
||||
@@ -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"]
|
||||
}
|
||||
@@ -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
@@ -7,11 +7,11 @@
|
||||
"dev": "next dev",
|
||||
"build": "next build --webpack",
|
||||
"start": "next start",
|
||||
"lint": "eslint .",
|
||||
"lint": "oxlint",
|
||||
"typeCheck": "tsc -p ./tsconfig.json",
|
||||
"postinstall": "patch-package",
|
||||
"format": "prettier --check \"**/*.{js,jsx,ts,tsx}\"",
|
||||
"format:fix": "prettier --write \"**/*.{js,jsx,ts,tsx}\""
|
||||
"format": "oxfmt --check",
|
||||
"format:fix": "oxfmt"
|
||||
},
|
||||
"dependencies": {
|
||||
"@auth/mongodb-adapter": "^3.5.2",
|
||||
@@ -23,7 +23,6 @@
|
||||
"@serwist/next": "^9.5.12",
|
||||
"@socialgouv/matomo-next": "^1.10.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",
|
||||
"@types/node": "^22.7.2",
|
||||
"autoprefixer": "^10.4.16",
|
||||
@@ -44,6 +43,8 @@
|
||||
"next-intl": "^4.14.7",
|
||||
"next-safe-action": "^7.9.3",
|
||||
"nodemailer": "^6.9.12",
|
||||
"oxfmt": "^0.71.0",
|
||||
"oxlint": "^1.86.0",
|
||||
"postcss": "^8.4.47",
|
||||
"react": "^19.3.0",
|
||||
"react-date-range": "^2.0.1",
|
||||
@@ -78,12 +79,7 @@
|
||||
"@types/react-date-range": "^1.4.9",
|
||||
"@types/react-dom": "^19.3.0",
|
||||
"@types/react-input-mask": "^3.0.2",
|
||||
"eslint": "^9.0.0",
|
||||
"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"
|
||||
"patch-package": "^8.0.1"
|
||||
},
|
||||
"packageManager": "yarn@1.22.22+sha1.ac34549e6aa8e7ead463a7407e1c7390f61a6610"
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user