Skip to content

Commit

Permalink
idk im lost gonna worryabout this later
Browse files Browse the repository at this point in the history
  • Loading branch information
DeepDoge committed Nov 14, 2024
1 parent 2a675a5 commit bb5407f
Show file tree
Hide file tree
Showing 66 changed files with 536 additions and 196 deletions.
25 changes: 24 additions & 1 deletion eslint.config.mjs
Original file line number Diff line number Diff line change
@@ -1,10 +1,13 @@
import eslint from "@eslint/js";
import typescriptPlugin from "@typescript-eslint/eslint-plugin";
import importPlugin from "eslint-plugin-import";
import projectStructurePlugin, { createIndependentModules } from "eslint-plugin-project-structure";
import tseslint from "typescript-eslint";

const patterns = {
features: ["src/features/*/**"],
domains_export: ["src/domains/*/mod.ts"],
domains: ["src/domains/*/**"],
shared: ["src/assets/**", "src/shared/**"],
app: ["src/app/**", "src/app.ts"],
};
Expand All @@ -18,6 +21,12 @@ export default tseslint.config(
"no-undefined": "error",
},
},
{
plugins: { import: importPlugin },
rules: {
"import/extensions": ["error", "always", { ignorePackages: true }],
},
},
{
plugins: { "@typescript-eslint": typescriptPlugin },
rules: {
Expand All @@ -39,10 +48,23 @@ export default tseslint.config(
},
},
modules: [
{
name: "domains",
pattern: patterns.domains,
allowImportsFrom: [
...patterns.shared,
...patterns.domains_export,
"{family_3}/**",
],
},
{
name: "features",
pattern: patterns.features,
allowImportsFrom: [...patterns.shared, "{family_3}/**"],
allowImportsFrom: [
...patterns.shared,
...patterns.domains_export,
"{family_3}/**",
],
},
{
name: "shared",
Expand All @@ -56,6 +78,7 @@ export default tseslint.config(
...patterns.shared,
...patterns.app,
...patterns.features,
...patterns.domains_export,
],
},
{
Expand Down
Loading

0 comments on commit bb5407f

Please sign in to comment.