eslint-plugin-path-checker-relative 0.0.8 → 0.0.9
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.
|
@@ -32,11 +32,8 @@ module.exports = {
|
|
|
32
32
|
},
|
|
33
33
|
},
|
|
34
34
|
},
|
|
35
|
-
],
|
|
36
|
-
messages:
|
|
37
|
-
"Слой может импортировать в себя только нижележащие слои (shared, entities, features, widgets, pages, app)":
|
|
38
|
-
"Слой может импортировать в себя только нижележащие слои (shared, entities, features, widgets, pages, app)",
|
|
39
|
-
}, // Add messageId and message
|
|
35
|
+
],
|
|
36
|
+
messages: [],
|
|
40
37
|
},
|
|
41
38
|
|
|
42
39
|
create(context) {
|
|
@@ -103,10 +100,14 @@ module.exports = {
|
|
|
103
100
|
}
|
|
104
101
|
|
|
105
102
|
if (!layers[currentFileLayer]?.includes(importLayer)) {
|
|
103
|
+
const allowedLayersMessage = `Слой "${currentFileLayer}" может импортировать в себя только нижележащие слои (${layers[
|
|
104
|
+
currentFileLayer
|
|
105
|
+
].join(", ")})`;
|
|
106
|
+
|
|
106
107
|
context.report({
|
|
107
108
|
node: node,
|
|
108
|
-
|
|
109
|
-
|
|
109
|
+
// eslint-disable-next-line eslint-plugin/prefer-message-ids
|
|
110
|
+
message: allowedLayersMessage,
|
|
110
111
|
});
|
|
111
112
|
}
|
|
112
113
|
},
|