Skip to content

Commit

Permalink
Include var/vars replacements in prevent-abbreviations (#894)
Browse files Browse the repository at this point in the history
  • Loading branch information
FloEdelmann committed Oct 30, 2020
1 parent 01e76e2 commit 07dadf5
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 1 deletion.
6 changes: 6 additions & 0 deletions rules/prevent-abbreviations.js
Expand Up @@ -214,6 +214,12 @@ const defaultReplacements = {
val: {
value: true
},
var: {
variable: true
},
vars: {
variables: true
},
ver: {
version: true
}
Expand Down
3 changes: 2 additions & 1 deletion test/prevent-abbreviations.js
Expand Up @@ -319,7 +319,8 @@ ruleTester.run('prevent-abbreviations', rule, {
var: true,
const: true,
used: true
}
},
var: false
}
}
],
Expand Down

0 comments on commit 07dadf5

Please sign in to comment.