26 lines
618 B
JavaScript
26 lines
618 B
JavaScript
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"]
|
|
}
|
|
]);
|