Initial commit: site monorepo with API, web, and infra.
Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
@@ -0,0 +1,39 @@
|
||||
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/*" }
|
||||
]
|
||||
}
|
||||
}
|
||||
];
|
||||
Reference in New Issue
Block a user