UNPKG

eslint-plugin-conarti-fsd

Version:
17 lines (14 loc) 374 B
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, };