eslint-plugin-conarti-fsd
Version:
Feature-sliced design methodology plugin
17 lines (14 loc) • 374 B
JavaScript
const { ERROR_MESSAGE_ID } = require('../config');
function reportCanNotImportLayer(context, node, pathsInfo) {
context.report({
node: node.source,
messageId: ERROR_MESSAGE_ID.CAN_NOT_IMPORT,
data: {
importLayer: pathsInfo.importLayer,
currentFileLayer: pathsInfo.currentFileLayer,
},
});
}
module.exports = {
reportCanNotImportLayer,
};