eslint major version bump

This commit is contained in:
Kim, Jimin 2025-03-18 18:28:34 +09:00
parent 258fb7cd0e
commit 3ddf8f6986
Signed by: pomp
GPG key ID: D3932F82A0667A3B
22 changed files with 1488 additions and 1048 deletions

View file

@ -1,7 +0,0 @@
module.exports = {
root: true,
extends: ["next/core-web-vitals", "@pompydev/eslint-config"],
rules: {
"react-hooks/exhaustive-deps": "off",
},
}

View file

@ -1,5 +1,5 @@
/** @type {import("prettier").Options} */
module.exports = {
...require("@pompydev/prettier-config"),
...import("@pompydev/prettier-config"),
plugins: ["prettier-plugin-tailwindcss"],
}

View file

@ -0,0 +1,23 @@
import { FlatCompat } from "@eslint/eslintrc"
import pompydevEslintConfig from "@pompydev/eslint-config"
import { globalIgnores } from "eslint/config"
const compat = new FlatCompat({
baseDirectory: import.meta.dirname,
})
export default [
globalIgnores(["**/.next"]),
// https://nextjs.org/docs/app/api-reference/config/eslint
...compat.config({
extends: ["next/core-web-vitals", "next/typescript"],
settings: { next: { rootDir: "apps/blog/" } },
}),
{
rules: {
"react-hooks/exhaustive-deps": "off",
},
},
...pompydevEslintConfig,
]

View file

@ -5,7 +5,7 @@
"scripts": {
"dev": "open-cli http://localhost:3000 && pnpm dev:headless",
"dev:headless": "next dev",
"lint": "oxlint && next lint",
"lint": "oxlint && eslint .",
"build": "next build",
"postbuild": "next-sitemap && cp ../../packages/content/dist/rss.xml public/rss.xml",
"test:e2e": "playwright test",
@ -30,11 +30,8 @@
"@types/react": "^18.3.1",
"@types/react-collapse": "^5.0.4",
"@types/react-dom": "^18.3.0",
"@typescript-eslint/eslint-plugin": "^6.15.0",
"@typescript-eslint/parser": "^6.15.0",
"autoprefixer": "^10.4.16",
"eslint-config-next": "^14.2.3",
"eslint-plugin-prettier": "^5.1.3",
"eslint-config-next": "15.2.3",
"highlight.js": "^11.9.0",
"katex": "^0.16.10",
"next": "^14.2.3",
@ -47,7 +44,6 @@
"react-collapse": "^5.1.1",
"react-dom": "^18.3.1",
"tailwindcss": "^3.4.0",
"typescript": "^5.3.3",
"zustand": "^4.5.2"
}
}