perf(client): restore bundle guardrails
This commit is contained in:
@@ -5,6 +5,28 @@ import nextTs from "eslint-config-next/typescript";
|
||||
const eslintConfig = defineConfig([
|
||||
...nextVitals,
|
||||
...nextTs,
|
||||
{
|
||||
files: ["src/**/*.{ts,tsx}"],
|
||||
rules: {
|
||||
"no-restricted-imports": [
|
||||
"error",
|
||||
{
|
||||
paths: [
|
||||
{
|
||||
name: "@/data/repositories",
|
||||
message:
|
||||
"Import the concrete repository module so unrelated browser storage stays out of the client graph.",
|
||||
},
|
||||
{
|
||||
name: "@/data/storage",
|
||||
message:
|
||||
"Import the concrete storage module so unrelated persistence code stays out of the client graph.",
|
||||
},
|
||||
],
|
||||
},
|
||||
],
|
||||
},
|
||||
},
|
||||
{
|
||||
files: ["src/app/**/*.{ts,tsx}"],
|
||||
ignores: ["src/app/api/**", "src/app/**/route.ts"],
|
||||
|
||||
Reference in New Issue
Block a user