@conarti/eslint-plugin-feature-sliced 2.0.0-rc.3 → 2.0.0-rc.4
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/index.cjs +19 -3
- package/dist/index.d.cts +8 -0
- package/dist/index.d.ts +8 -0
- package/dist/index.js +19 -3
- package/package.json +1 -1
package/dist/index.cjs
CHANGED
|
@@ -67,7 +67,7 @@ var segments = [
|
|
|
67
67
|
var pathSeparator = "/";
|
|
68
68
|
|
|
69
69
|
// package.json
|
|
70
|
-
var version = "2.0.0-rc.
|
|
70
|
+
var version = "2.0.0-rc.4";
|
|
71
71
|
|
|
72
72
|
// src/rules/index.ts
|
|
73
73
|
var import_eslint_plugin_import_x = __toESM(require("eslint-plugin-import-x"), 1);
|
|
@@ -460,7 +460,8 @@ function validateAndReport(node, context, optionsWithDefault, options = { needCh
|
|
|
460
460
|
if (!hasPath(node)) {
|
|
461
461
|
return;
|
|
462
462
|
}
|
|
463
|
-
|
|
463
|
+
const isIgnoredForValidation = isIgnoredTarget(node, optionsWithDefault) || isIgnoredCurrentFile(context, optionsWithDefault);
|
|
464
|
+
if (isIgnoredForValidation) {
|
|
464
465
|
return;
|
|
465
466
|
}
|
|
466
467
|
const pathsInfo = extractPathsInfo(node, context);
|
|
@@ -488,6 +489,12 @@ var absolute_relative_default = createEslintRule({
|
|
|
488
489
|
{
|
|
489
490
|
type: "object",
|
|
490
491
|
properties: {
|
|
492
|
+
ignorePatterns: {
|
|
493
|
+
type: "array",
|
|
494
|
+
items: {
|
|
495
|
+
type: "string"
|
|
496
|
+
}
|
|
497
|
+
},
|
|
491
498
|
ignoreInFilesPatterns: {
|
|
492
499
|
type: "array",
|
|
493
500
|
items: {
|
|
@@ -500,6 +507,7 @@ var absolute_relative_default = createEslintRule({
|
|
|
500
507
|
},
|
|
501
508
|
defaultOptions: [
|
|
502
509
|
{
|
|
510
|
+
ignorePatterns: [],
|
|
503
511
|
ignoreInFilesPatterns: []
|
|
504
512
|
}
|
|
505
513
|
],
|
|
@@ -801,7 +809,8 @@ function validateAndReport3(node, context, optionsWithDefault) {
|
|
|
801
809
|
if (!hasPath(node)) {
|
|
802
810
|
return;
|
|
803
811
|
}
|
|
804
|
-
|
|
812
|
+
const isIgnoredForValidation = isIgnoredTarget(node, optionsWithDefault) || isIgnoredCurrentFile(context, optionsWithDefault);
|
|
813
|
+
if (isIgnoredForValidation) {
|
|
805
814
|
return;
|
|
806
815
|
}
|
|
807
816
|
if (shouldBeFromPublicApi(node, context, optionsWithDefault)) {
|
|
@@ -859,6 +868,12 @@ var public_api_default = createEslintRule({
|
|
|
859
868
|
"slices" /* SLICES */
|
|
860
869
|
]
|
|
861
870
|
},
|
|
871
|
+
ignorePatterns: {
|
|
872
|
+
type: "array",
|
|
873
|
+
items: {
|
|
874
|
+
type: "string"
|
|
875
|
+
}
|
|
876
|
+
},
|
|
862
877
|
ignoreInFilesPatterns: {
|
|
863
878
|
type: "array",
|
|
864
879
|
items: {
|
|
@@ -872,6 +887,7 @@ var public_api_default = createEslintRule({
|
|
|
872
887
|
defaultOptions: [
|
|
873
888
|
{
|
|
874
889
|
level: "slices" /* SLICES */,
|
|
890
|
+
ignorePatterns: [],
|
|
875
891
|
ignoreInFilesPatterns: []
|
|
876
892
|
}
|
|
877
893
|
],
|
package/dist/index.d.cts
CHANGED
|
@@ -16,6 +16,10 @@ declare const enum VALIDATION_LEVEL {
|
|
|
16
16
|
}
|
|
17
17
|
|
|
18
18
|
interface AbsoluteRelativeOptions {
|
|
19
|
+
/**
|
|
20
|
+
* Ignore certain import paths (import foo from '<path-to-ignore>')
|
|
21
|
+
*/
|
|
22
|
+
ignorePatterns: string[];
|
|
19
23
|
/**
|
|
20
24
|
* Disable the rule in certain files
|
|
21
25
|
*/
|
|
@@ -45,6 +49,10 @@ interface PublicApiOptions {
|
|
|
45
49
|
* @default 'slices'
|
|
46
50
|
*/
|
|
47
51
|
level: VALIDATION_LEVEL;
|
|
52
|
+
/**
|
|
53
|
+
* Ignore certain import paths (import foo from '<path-to-ignore>')
|
|
54
|
+
*/
|
|
55
|
+
ignorePatterns: string[];
|
|
48
56
|
/**
|
|
49
57
|
* Disable the rule in certain files
|
|
50
58
|
*/
|
package/dist/index.d.ts
CHANGED
|
@@ -16,6 +16,10 @@ declare const enum VALIDATION_LEVEL {
|
|
|
16
16
|
}
|
|
17
17
|
|
|
18
18
|
interface AbsoluteRelativeOptions {
|
|
19
|
+
/**
|
|
20
|
+
* Ignore certain import paths (import foo from '<path-to-ignore>')
|
|
21
|
+
*/
|
|
22
|
+
ignorePatterns: string[];
|
|
19
23
|
/**
|
|
20
24
|
* Disable the rule in certain files
|
|
21
25
|
*/
|
|
@@ -45,6 +49,10 @@ interface PublicApiOptions {
|
|
|
45
49
|
* @default 'slices'
|
|
46
50
|
*/
|
|
47
51
|
level: VALIDATION_LEVEL;
|
|
52
|
+
/**
|
|
53
|
+
* Ignore certain import paths (import foo from '<path-to-ignore>')
|
|
54
|
+
*/
|
|
55
|
+
ignorePatterns: string[];
|
|
48
56
|
/**
|
|
49
57
|
* Disable the rule in certain files
|
|
50
58
|
*/
|
package/dist/index.js
CHANGED
|
@@ -31,7 +31,7 @@ var segments = [
|
|
|
31
31
|
var pathSeparator = "/";
|
|
32
32
|
|
|
33
33
|
// package.json
|
|
34
|
-
var version = "2.0.0-rc.
|
|
34
|
+
var version = "2.0.0-rc.4";
|
|
35
35
|
|
|
36
36
|
// src/rules/index.ts
|
|
37
37
|
import pluginImport from "eslint-plugin-import-x";
|
|
@@ -427,7 +427,8 @@ function validateAndReport(node, context, optionsWithDefault, options = { needCh
|
|
|
427
427
|
if (!hasPath(node)) {
|
|
428
428
|
return;
|
|
429
429
|
}
|
|
430
|
-
|
|
430
|
+
const isIgnoredForValidation = isIgnoredTarget(node, optionsWithDefault) || isIgnoredCurrentFile(context, optionsWithDefault);
|
|
431
|
+
if (isIgnoredForValidation) {
|
|
431
432
|
return;
|
|
432
433
|
}
|
|
433
434
|
const pathsInfo = extractPathsInfo(node, context);
|
|
@@ -455,6 +456,12 @@ var absolute_relative_default = createEslintRule({
|
|
|
455
456
|
{
|
|
456
457
|
type: "object",
|
|
457
458
|
properties: {
|
|
459
|
+
ignorePatterns: {
|
|
460
|
+
type: "array",
|
|
461
|
+
items: {
|
|
462
|
+
type: "string"
|
|
463
|
+
}
|
|
464
|
+
},
|
|
458
465
|
ignoreInFilesPatterns: {
|
|
459
466
|
type: "array",
|
|
460
467
|
items: {
|
|
@@ -467,6 +474,7 @@ var absolute_relative_default = createEslintRule({
|
|
|
467
474
|
},
|
|
468
475
|
defaultOptions: [
|
|
469
476
|
{
|
|
477
|
+
ignorePatterns: [],
|
|
470
478
|
ignoreInFilesPatterns: []
|
|
471
479
|
}
|
|
472
480
|
],
|
|
@@ -775,7 +783,8 @@ function validateAndReport3(node, context, optionsWithDefault) {
|
|
|
775
783
|
if (!hasPath(node)) {
|
|
776
784
|
return;
|
|
777
785
|
}
|
|
778
|
-
|
|
786
|
+
const isIgnoredForValidation = isIgnoredTarget(node, optionsWithDefault) || isIgnoredCurrentFile(context, optionsWithDefault);
|
|
787
|
+
if (isIgnoredForValidation) {
|
|
779
788
|
return;
|
|
780
789
|
}
|
|
781
790
|
if (shouldBeFromPublicApi(node, context, optionsWithDefault)) {
|
|
@@ -833,6 +842,12 @@ var public_api_default = createEslintRule({
|
|
|
833
842
|
"slices" /* SLICES */
|
|
834
843
|
]
|
|
835
844
|
},
|
|
845
|
+
ignorePatterns: {
|
|
846
|
+
type: "array",
|
|
847
|
+
items: {
|
|
848
|
+
type: "string"
|
|
849
|
+
}
|
|
850
|
+
},
|
|
836
851
|
ignoreInFilesPatterns: {
|
|
837
852
|
type: "array",
|
|
838
853
|
items: {
|
|
@@ -846,6 +861,7 @@ var public_api_default = createEslintRule({
|
|
|
846
861
|
defaultOptions: [
|
|
847
862
|
{
|
|
848
863
|
level: "slices" /* SLICES */,
|
|
864
|
+
ignorePatterns: [],
|
|
849
865
|
ignoreInFilesPatterns: []
|
|
850
866
|
}
|
|
851
867
|
],
|
package/package.json
CHANGED