Skip to content

Commit eadb44a

Browse files
committed
refactor: inline 'message'
1 parent 97329b6 commit eadb44a

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

lib/rules/filename-blacklist.js

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -65,12 +65,11 @@ module.exports = {
6565

6666
if (matchResult) {
6767
const { path } = matchResult;
68-
let message =
69-
'The filename "{{ path }}" matches the blacklisted "{{ blackListPattern }}" pattern. Use a pattern like "{{ useInsteadPattern }}" instead.';
7068

7169
context.report({
7270
node,
73-
message,
71+
message:
72+
'The filename "{{ path }}" matches the blacklisted "{{ blackListPattern }}" pattern. Use a pattern like "{{ useInsteadPattern }}" instead.',
7473
data: {
7574
path,
7675
blackListPattern,

0 commit comments

Comments
 (0)