@@ -11,6 +11,7 @@ module.exports = {
11
11
licenseNot : [ "MIT" , "BSD" , "Apache" , "Hippocratic" , "ISC" ] ,
12
12
} ,
13
13
} ,
14
+
14
15
{
15
16
name : "axios-only" ,
16
17
comment : "Only src/common/axios.js should import axios" ,
@@ -25,17 +26,35 @@ module.exports = {
25
26
} ,
26
27
} ,
27
28
28
- // {
29
- // name: 'no-circular',
30
- // severity: 'warn',
31
- // comment:
32
- // 'This dependency is part of a circular relationship. You might want to revise ' +
33
- // 'your solution (i.e. use dependency inversion, make sure the modules have a single responsibility) ',
34
- // from: {},
35
- // to: {
36
- // circular: true
37
- // }
38
- // },
29
+ {
30
+ name : "react-image-editor is deprecated" ,
31
+ severity : "error" ,
32
+ from : {
33
+ pathNot : [
34
+ // once the old gallery is removed, we can remove the dependency and stop using `--force` when calling `npm install`
35
+ "^src/Gallery" ,
36
+ ] ,
37
+ } ,
38
+ to : {
39
+ path : "@toast-ui/react-image-editor" ,
40
+ } ,
41
+ } ,
42
+
43
+ // this rule is disabled because cycles are generally not an issue, but the rule can be useful when debugging some issues.
44
+ /*
45
+ {
46
+ name: 'no-circular',
47
+ severity: 'warn',
48
+ comment:
49
+ 'This dependency is part of a circular relationship. You might want to revise ' +
50
+ 'your solution (i.e. use dependency inversion, make sure the modules have a single responsibility) ',
51
+ from: {},
52
+ to: {
53
+ circular: true
54
+ }
55
+ },
56
+ */
57
+
39
58
{
40
59
name : "no-orphans" ,
41
60
comment :
@@ -56,9 +75,10 @@ module.exports = {
56
75
} ,
57
76
to : { } ,
58
77
} ,
78
+
59
79
{
60
80
name : "no-unreachable-from-root" ,
61
- severity : "error " ,
81
+ severity : "warn " ,
62
82
from : {
63
83
path : [ "src" ] ,
64
84
} ,
@@ -115,6 +135,7 @@ module.exports = {
115
135
reachable : false ,
116
136
} ,
117
137
} ,
138
+
118
139
{
119
140
name : "no-deprecated-core" ,
120
141
comment :
@@ -148,6 +169,7 @@ module.exports = {
148
169
] ,
149
170
} ,
150
171
} ,
172
+
151
173
{
152
174
name : "not-to-deprecated" ,
153
175
comment :
@@ -159,6 +181,7 @@ module.exports = {
159
181
dependencyTypes : [ "deprecated" ] ,
160
182
} ,
161
183
} ,
184
+
162
185
{
163
186
name : "no-duplicate-dep-types" ,
164
187
comment :
@@ -175,6 +198,7 @@ module.exports = {
175
198
dependencyTypesNot : [ "type-only" ] ,
176
199
} ,
177
200
} ,
201
+
178
202
{
179
203
name : "not-to-spec" ,
180
204
comment :
@@ -187,6 +211,7 @@ module.exports = {
187
211
path : ".(spec|test).(js|mjs|cjs|ts|ls|coffee|litcoffee|coffee.md)$" ,
188
212
} ,
189
213
} ,
214
+
190
215
{
191
216
name : "not-to-dev-dep" ,
192
217
severity : "error" ,
@@ -206,6 +231,7 @@ module.exports = {
206
231
pathNot : "@babel" ,
207
232
} ,
208
233
} ,
234
+
209
235
{
210
236
name : "optional-deps-used" ,
211
237
severity : "info" ,
@@ -219,6 +245,7 @@ module.exports = {
219
245
dependencyTypes : [ "npm-optional" ] ,
220
246
} ,
221
247
} ,
248
+
222
249
{
223
250
name : "peer-deps-used" ,
224
251
comment :
@@ -308,20 +335,6 @@ module.exports = {
308
335
reachable : true ,
309
336
} ,
310
337
} ,
311
-
312
- {
313
- name : "react-image-editor is deprecated" ,
314
- severity : "error" ,
315
- from : {
316
- pathNot : [
317
- // once the old gallery is removed, we can remove the dependency and stop using `--force` when calling `npm install`
318
- "^src/Gallery" ,
319
- ] ,
320
- } ,
321
- to : {
322
- path : "@toast-ui/react-image-editor" ,
323
- } ,
324
- } ,
325
338
] ,
326
339
allowed : [ ] ,
327
340
required : [ ] ,
0 commit comments