Skip to content

Commit

Permalink
Improved behaviour of prevent-abbreviations
Browse files Browse the repository at this point in the history
Signed-off-by: Jaid <[email protected]>
  • Loading branch information
Jaid committed Sep 27, 2024
1 parent 8ccf816 commit 845c3fa
Showing 1 changed file with 17 additions and 1 deletion.
18 changes: 17 additions & 1 deletion src/segments/typescript/typescript.ts
Original file line number Diff line number Diff line change
Expand Up @@ -442,7 +442,23 @@ const unicornRules: Linter.Config[`rules`] = {
"prevent-abbreviations": [
warn,
{

replacements: {
args: false,
dir: {
directory: false,
direction: false,
folder: true,
},
i: {
index: false,
},
opt: {
option: true,
},
props: {
properties: false,
},
},
},
],
"switch-case-braces": warn,
Expand Down

0 comments on commit 845c3fa

Please sign in to comment.