Some checks failed
CI / Lint, Typecheck & Test (push) Failing after 1m16s
- Introduced eslint.config.mjs files for both admin and storefront to extend Next.js linting rules. - Updated package.json files to replace the default Next.js lint command with a direct ESLint command for improved linting control.
13 lines
393 B
JavaScript
13 lines
393 B
JavaScript
import { dirname } from "path";
|
|
import { fileURLToPath } from "url";
|
|
import { FlatCompat } from "@eslint/eslintrc";
|
|
|
|
const __dirname = dirname(fileURLToPath(import.meta.url));
|
|
const compat = new FlatCompat({ baseDirectory: __dirname });
|
|
|
|
const config = [
|
|
...compat.extends("next/core-web-vitals", "next/typescript"),
|
|
{ ignores: [".next/**", "node_modules/**"] },
|
|
];
|
|
export default config;
|