fix(deps): migrate ESLint tooling for Next.js 16
This commit is contained in:
@@ -0,0 +1,31 @@
|
||||
import { defineConfig } from "eslint/config";
|
||||
import nextVitals from "eslint-config-next/core-web-vitals";
|
||||
import reactPlugin from "eslint-plugin-react";
|
||||
|
||||
export default defineConfig([
|
||||
...nextVitals,
|
||||
{
|
||||
plugins: {
|
||||
react: reactPlugin
|
||||
},
|
||||
rules: {
|
||||
"@next/next/no-img-element": "off",
|
||||
"react/no-unknown-property": "error"
|
||||
}
|
||||
},
|
||||
{
|
||||
files: ["pages/api/file/**/*.js"],
|
||||
rules: {
|
||||
"react-hooks/rules-of-hooks": "off"
|
||||
}
|
||||
},
|
||||
{
|
||||
ignores: [
|
||||
".next/**",
|
||||
"out/**",
|
||||
"build/**",
|
||||
"next-env.d.ts",
|
||||
"data/forms/**"
|
||||
]
|
||||
}
|
||||
]);
|
||||
Reference in New Issue
Block a user