chore: finish frontend ESLint migration #18
Enable every plugin recommended preset and replace Biome with ESLint formatting. Preserve API contracts and JSX whitespace; verify source, tests, builds and tooling.
This commit is contained in:
+14
-14
@@ -1,73 +1,73 @@
|
||||
module.exports = {
|
||||
forbidden: [
|
||||
{
|
||||
from: {},
|
||||
name: "no-unresolved",
|
||||
severity: "error",
|
||||
from: {},
|
||||
to: { couldNotResolve: true },
|
||||
},
|
||||
{
|
||||
from: { path: "^packages/" },
|
||||
name: "packages-must-not-depend-on-app",
|
||||
severity: "error",
|
||||
from: { path: "^packages/" },
|
||||
to: { path: "^src/" },
|
||||
},
|
||||
{
|
||||
from: {},
|
||||
name: "no-circular",
|
||||
severity: "error",
|
||||
from: {},
|
||||
to: { circular: true },
|
||||
},
|
||||
{
|
||||
name: "slices-must-use-public-api",
|
||||
severity: "error",
|
||||
from: {
|
||||
path: "^src/(app|pages|features|entities|shared)/([^/]+)/",
|
||||
},
|
||||
name: "slices-must-use-public-api",
|
||||
severity: "error",
|
||||
to: {
|
||||
path: "^src/(app|pages|features|entities|shared)/([^/]+)/(?!index\\.ts$)",
|
||||
path: String.raw`^src/(app|pages|features|entities|shared)/([^/]+)/(?!index\.ts$)`,
|
||||
pathNot: "^src/$1/$2/",
|
||||
},
|
||||
},
|
||||
{
|
||||
from: { path: "^src/(pages|features|entities)/([^/]+)/" },
|
||||
name: "no-same-layer-cross-slice-imports",
|
||||
severity: "error",
|
||||
from: { path: "^src/(pages|features|entities)/([^/]+)/" },
|
||||
to: { path: "^src/$1/", pathNot: "^src/$1/$2/" },
|
||||
},
|
||||
{
|
||||
from: { path: "^src/shared/" },
|
||||
name: "shared-must-not-depend-on-layers",
|
||||
severity: "error",
|
||||
from: { path: "^src/shared/" },
|
||||
to: { path: "^src/(entities|features|pages|app)/" },
|
||||
},
|
||||
{
|
||||
from: { path: "^src/entities/" },
|
||||
name: "entities-must-not-depend-on-higher-layers",
|
||||
severity: "error",
|
||||
from: { path: "^src/entities/" },
|
||||
to: { path: "^src/(features|pages|app)/" },
|
||||
},
|
||||
{
|
||||
from: { path: "^src/features/" },
|
||||
name: "features-must-not-depend-on-higher-layers",
|
||||
severity: "error",
|
||||
from: { path: "^src/features/" },
|
||||
to: { path: "^src/(pages|app)/" },
|
||||
},
|
||||
{
|
||||
from: { path: "^src/pages/" },
|
||||
name: "pages-must-not-depend-on-app",
|
||||
severity: "error",
|
||||
from: { path: "^src/pages/" },
|
||||
to: { path: "^src/app/" },
|
||||
},
|
||||
],
|
||||
options: {
|
||||
exclude: "^packages/[^/]+/dist/",
|
||||
doNotFollow: { path: "node_modules" },
|
||||
tsConfig: { fileName: "tsconfig.dependency-cruiser.json" },
|
||||
enhancedResolveOptions: {
|
||||
exportsFields: ["exports"],
|
||||
conditionNames: ["import", "require", "node", "default"],
|
||||
exportsFields: ["exports"],
|
||||
},
|
||||
exclude: "^packages/[^/]+/dist/",
|
||||
tsConfig: { fileName: "tsconfig.dependency-cruiser.json" },
|
||||
tsPreCompilationDeps: true,
|
||||
},
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user