18 lines
524 B
JavaScript
18 lines
524 B
JavaScript
import nextConfig from "eslint-config-next";
|
|||
|
|
import nextTs from "eslint-config-next/typescript";
|
||
|
|
|
||
|
|
const config = [
|
||
|
|
...nextConfig,
|
||
|
|
...nextTs,
|
||
|
|
{
|
||
|
|
rules: {
|
||
|
|
// Images are pre-optimized at build time (scripts/optimize-images.mjs) and served statically;
|
||
|
|
// next/image adds nothing in a static export with `images.unoptimized`.
|
||
|
|
"@next/next/no-img-element": "off",
|
||
|
|
},
|
||
|
|
},
|
||
|
|
{ ignores: ["node_modules/**", ".next/**", "out/**", "public/**", "scripts/**", "tests/php/**"] },
|
||
|
|
];
|
||
|
|
|
||
|
|
export default config;
|