Skip to content

Commit

Permalink
fix: change target filename
Browse files Browse the repository at this point in the history
  • Loading branch information
hiro08gh committed Dec 29, 2023
1 parent c5e120b commit 63e4084
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/rules/naming-rules.ts
Original file line number Diff line number Diff line change
Expand Up @@ -127,7 +127,7 @@ export const namingRules: Rule.RuleModule = {

if (targetRule.patterns) {
const pattern = new RegExp(targetRule.patterns);
if (!pattern.test(filename)) {
if (!pattern.test(file)) {
context.report({
node,
messageId: 'errorNoMatchPattern',
Expand Down

0 comments on commit 63e4084

Please sign in to comment.