Skip to content

Commit 1d8a623

Browse files
committed
Improve 'require-dependency' error message
1 parent da0fe1b commit 1d8a623

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

lib/rules/require-dependency.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ module.exports.create = context =>
3030
context.report({
3131
node,
3232
message:
33-
'Importing packages without listing them as dependency is not allowed',
33+
'Importing from another workspace without listing it as a dependency is not allowed',
3434
});
3535
}
3636
});

tests/rules/require-dependency.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ ruleTester.run('require-dependency', rule, {
2121
errors: [
2222
{
2323
message:
24-
'Importing packages without listing them as dependency is not allowed',
24+
'Importing from another workspace without listing it as a dependency is not allowed',
2525
},
2626
],
2727
},

0 commit comments

Comments
 (0)