Skip to content

Commit

Permalink
fix: Update rule message to include alternate word suggestion
Browse files Browse the repository at this point in the history
  • Loading branch information
im3dabasia committed Feb 7, 2025
1 parent 5a444e4 commit be0f32a
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion .eslintrc.js
Original file line number Diff line number Diff line change
Expand Up @@ -122,7 +122,8 @@ const restrictedSyntax = [
{
selector:
'CallExpression[callee.name=/^(__|_x|_n|_nx)$/] > Literal[value=/sidebar\\b/i]',
message: "Avoid using the word 'sidebar' in translatable strings",
message:
"Avoid using the word 'sidebar' in translatable strings. Consider using 'panel' instead.",
},
];

Expand Down

0 comments on commit be0f32a

Please sign in to comment.