@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.
- package/dist/boundaries.d.ts.map +1 -1
- package/dist/boundaries.js +11 -3
- package/package.json +1 -1
- package/src/boundaries.ts +11 -3
package/dist/boundaries.d.ts.map
CHANGED
|
@@ -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,
|
|
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"}
|
package/dist/boundaries.js
CHANGED
|
@@ -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: "
|
|
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: {
|
|
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: {
|
|
94
|
+
file: {
|
|
95
|
+
categories: ["domain", "port", "data", "app", "main"],
|
|
96
|
+
},
|
|
89
97
|
},
|
|
90
98
|
},
|
|
91
99
|
},
|
package/package.json
CHANGED
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: "
|
|
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: {
|
|
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: {
|
|
108
|
+
file: {
|
|
109
|
+
categories: ["domain", "port", "data", "app", "main"],
|
|
110
|
+
},
|
|
103
111
|
},
|
|
104
112
|
},
|
|
105
113
|
},
|