feat(lint): add ESLint configuration for admin and storefront applications
Some checks failed
CI / Lint, Typecheck & Test (push) Failing after 1m16s
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:
12
apps/admin/eslint.config.mjs
Normal file
12
apps/admin/eslint.config.mjs
Normal 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;
|
||||
@@ -6,7 +6,7 @@
|
||||
"dev": "next dev --port 3001",
|
||||
"build": "next build",
|
||||
"start": "next start",
|
||||
"lint": "next lint",
|
||||
"lint": "eslint .",
|
||||
"type-check": "tsc --noEmit"
|
||||
},
|
||||
"dependencies": {
|
||||
|
||||
Reference in New Issue
Block a user