Skip to content

Commit 255f28b

Browse files
committed
feat: use filename without path when error occurs with rule filename-naming-convention
1 parent 21a1c3e commit 255f28b

File tree

3 files changed

+84
-84
lines changed

3 files changed

+84
-84
lines changed

lib/rules/filename-naming-convention.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -78,13 +78,13 @@ module.exports = {
7878
);
7979

8080
if (matchResult) {
81-
const { path, pattern } = matchResult;
81+
const { pattern } = matchResult;
8282
context.report({
8383
node,
8484
message:
85-
'The filename "{{path}}" does not match the "{{pattern}}" style',
85+
'The filename "{{filename}}" does not match the "{{pattern}}" style',
8686
data: {
87-
path,
87+
filename,
8888
pattern,
8989
},
9090
});

0 commit comments

Comments
 (0)