view data fixes
This commit is contained in:
@@ -41,8 +41,8 @@ module.exports = {
|
||||
const importPath = node.source.value;
|
||||
|
||||
// Check for DTO imports (should be from lib/types/generated/)
|
||||
if (importPath.includes('/lib/types/')) {
|
||||
if (!importPath.includes('/lib/types/generated/')) {
|
||||
if (importPath.includes('/lib/types/') || importPath.includes('@/lib/types/') || importPath.includes('../../types/')) {
|
||||
if (!importPath.includes('/lib/types/generated/') && !importPath.includes('@/lib/types/generated/') && !importPath.includes('../../types/generated/')) {
|
||||
dtoImportPath = importPath;
|
||||
context.report({
|
||||
node,
|
||||
@@ -55,7 +55,7 @@ module.exports = {
|
||||
}
|
||||
|
||||
// Check for ViewData imports (should be from lib/view-data/)
|
||||
if (importPath.includes('/lib/view-data/')) {
|
||||
if (importPath.includes('/lib/view-data/') || importPath.includes('@/lib/view-data/') || importPath.includes('../../view-data/')) {
|
||||
hasViewDataImport = true;
|
||||
viewDataImportPath = importPath;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user