Files
site/apps/web/eslint.config.js
T
vlad 86cc3fa541 Update admin theme/layout and refresh README details.
Align the project baseline with the latest admin interface styling and layout structure while documenting setup and usage updates in README.
2026-07-14 17:12:28 +03:00

40 lines
1.1 KiB
JavaScript

import tsParser from "@typescript-eslint/parser";
import tsPlugin from "@typescript-eslint/eslint-plugin";
import boundaries from "eslint-plugin-boundaries";
export default [
{
files: ["src/**/*.{ts,tsx}"],
languageOptions: {
parser: tsParser,
parserOptions: { project: "./tsconfig.json" }
},
plugins: {
"@typescript-eslint": tsPlugin,
boundaries
},
rules: {
"boundaries/element-types": [
"error",
{
default: "disallow",
rules: [
{ from: "app", allow: ["app", "pages", "modules", "shared"] },
{ from: "pages", allow: ["pages", "modules", "shared"] },
{ from: "modules", allow: ["modules", "shared"] },
{ from: "shared", allow: ["shared"] }
]
}
]
},
settings: {
"boundaries/elements": [
{ type: "app", pattern: "src/app/*" },
{ type: "pages", pattern: "src/pages/*" },
{ type: "modules", pattern: "src/modules/*" },
{ type: "shared", pattern: "src/shared/*" }
]
}
}
];