@insaeng/eslint-config 0.3.0 → 0.4.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1 +1 @@
1
- {"version":3,"file":"boundaries.d.ts","sourceRoot":"","sources":["../src/boundaries.ts"],"names":[],"mappings":"AAIA,MAAM,WAAW,iBAAiB;IAChC,OAAO,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;CAC9B;AAyCD,wBAAgB,UAAU,CAAC,OAAO,GAAE,iBAAsB,0CAwGzD"}
1
+ {"version":3,"file":"boundaries.d.ts","sourceRoot":"","sources":["../src/boundaries.ts"],"names":[],"mappings":"AAIA,MAAM,WAAW,iBAAiB;IAChC,OAAO,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;CAC9B;AAyCD,wBAAgB,UAAU,CAAC,OAAO,GAAE,iBAAsB,0CAgHzD"}
@@ -53,7 +53,7 @@ export function boundaries(options = {}) {
53
53
  settings: {
54
54
  "boundaries/files": [
55
55
  { category: "domain", pattern: "src/domain/*/*-entity.ts" },
56
- { category: "domain", pattern: "src/domain/*/*-repo.ts" },
56
+ { category: "port", pattern: "src/domain/*/*-repo.ts" },
57
57
  { category: "domain", pattern: "src/domain/*/use-cases/*.ts" },
58
58
  { category: "data", pattern: "src/data/**" },
59
59
  { category: "app", pattern: "src/app/**" },
@@ -70,9 +70,15 @@ export function boundaries(options = {}) {
70
70
  checkUnknownLocals: true,
71
71
  policies: [
72
72
  {
73
- from: { file: { categories: ["domain", "data", "app"] } },
73
+ from: {
74
+ file: { categories: ["domain", "port", "data", "app"] },
75
+ },
74
76
  allow: { to: { file: { categories: "domain" } } },
75
77
  },
78
+ {
79
+ from: { file: { categories: ["domain", "port", "data"] } },
80
+ allow: { to: { file: { categories: "port" } } },
81
+ },
76
82
  {
77
83
  from: { file: { categories: "data" } },
78
84
  allow: { to: { file: { categories: "data" } } },
@@ -85,7 +91,9 @@ export function boundaries(options = {}) {
85
91
  from: { file: { categories: "main" } },
86
92
  allow: {
87
93
  to: {
88
- file: { categories: ["domain", "data", "app", "main"] },
94
+ file: {
95
+ categories: ["domain", "port", "data", "app", "main"],
96
+ },
89
97
  },
90
98
  },
91
99
  },
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@insaeng/eslint-config",
3
- "version": "0.3.0",
3
+ "version": "0.4.0",
4
4
  "description": "Strict, type-aware ESLint flat config for insaeng services",
5
5
  "repository": {
6
6
  "type": "git",
package/src/boundaries.ts CHANGED
@@ -67,7 +67,7 @@ export function boundaries(options: BoundariesOptions = {}) {
67
67
  settings: {
68
68
  "boundaries/files": [
69
69
  { category: "domain", pattern: "src/domain/*/*-entity.ts" },
70
- { category: "domain", pattern: "src/domain/*/*-repo.ts" },
70
+ { category: "port", pattern: "src/domain/*/*-repo.ts" },
71
71
  { category: "domain", pattern: "src/domain/*/use-cases/*.ts" },
72
72
  { category: "data", pattern: "src/data/**" },
73
73
  { category: "app", pattern: "src/app/**" },
@@ -84,9 +84,15 @@ export function boundaries(options: BoundariesOptions = {}) {
84
84
  checkUnknownLocals: true,
85
85
  policies: [
86
86
  {
87
- from: { file: { categories: ["domain", "data", "app"] } },
87
+ from: {
88
+ file: { categories: ["domain", "port", "data", "app"] },
89
+ },
88
90
  allow: { to: { file: { categories: "domain" } } },
89
91
  },
92
+ {
93
+ from: { file: { categories: ["domain", "port", "data"] } },
94
+ allow: { to: { file: { categories: "port" } } },
95
+ },
90
96
  {
91
97
  from: { file: { categories: "data" } },
92
98
  allow: { to: { file: { categories: "data" } } },
@@ -99,7 +105,9 @@ export function boundaries(options: BoundariesOptions = {}) {
99
105
  from: { file: { categories: "main" } },
100
106
  allow: {
101
107
  to: {
102
- file: { categories: ["domain", "data", "app", "main"] },
108
+ file: {
109
+ categories: ["domain", "port", "data", "app", "main"],
110
+ },
103
111
  },
104
112
  },
105
113
  },