eslint major version bump
This commit is contained in:
parent
258fb7cd0e
commit
3ddf8f6986
22 changed files with 1488 additions and 1048 deletions
23
apps/blog/eslint.config.js
Normal file
23
apps/blog/eslint.config.js
Normal 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,
|
||||
]
|
Loading…
Add table
Add a link
Reference in a new issue