Skip to content

Commit

Permalink
chore: changed report params to object
Browse files Browse the repository at this point in the history
  • Loading branch information
Bastian Gebhardt authored and Bastian Gebhardt committed Nov 26, 2022
1 parent b9569e6 commit e46d3e2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion rules/detect-non-literal-fs-filename.js
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ function generateReport({ context, node, packageName, methodName, indices }) {
if (!indices || indices.length === 0) {
return null;
}
return context.report(node, `Found ${methodName} from package "${packageName}" with non literal argument at index ${indices.join(',')}`);
return context.report({ node, message: `Found ${methodName} from package "${packageName}" with non literal argument at index ${indices.join(',')}` });
}

/**
Expand Down

0 comments on commit e46d3e2

Please sign in to comment.