feat(lint): add ESLint configuration for admin and storefront applications
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.
This commit is contained in:
2026-03-08 00:37:15 +03:00
parent 51663df27d
commit 2f5537cf7e
4 changed files with 26 additions and 2 deletions

View File

@@ -0,0 +1,12 @@
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;

View File

@@ -6,7 +6,7 @@
"dev": "next dev --port 3001", "dev": "next dev --port 3001",
"build": "next build", "build": "next build",
"start": "next start", "start": "next start",
"lint": "next lint", "lint": "eslint .",
"type-check": "tsc --noEmit" "type-check": "tsc --noEmit"
}, },
"dependencies": { "dependencies": {

View File

@@ -0,0 +1,12 @@
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;

View File

@@ -6,7 +6,7 @@
"dev": "next dev --port 3000", "dev": "next dev --port 3000",
"build": "next build", "build": "next build",
"start": "next start", "start": "next start",
"lint": "next lint", "lint": "eslint .",
"type-check": "tsc --noEmit" "type-check": "tsc --noEmit"
}, },
"dependencies": { "dependencies": {