Skip to content

Commit

Permalink
fix: Add Eslint restrictedSyntax for toggle word
Browse files Browse the repository at this point in the history
  • Loading branch information
im3dabasia committed Dec 18, 2024
1 parent 90c3d9e commit 84fc197
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions .eslintrc.js
Original file line number Diff line number Diff line change
Expand Up @@ -137,6 +137,10 @@ const restrictedSyntax = [
message:
'Avoid truthy checks on length property rendering, as zero length is rendered verbatim.',
},
{
selector: 'Literal[value=/^toggle\\b/i]',
message: "Avoid using the verb 'Toggle' in translatable strings",
},
];

/** `no-restricted-syntax` rules for components. */
Expand Down

0 comments on commit 84fc197

Please sign in to comment.