Skip to content

Commit

Permalink
Add more to unicorn/prevent-abbreviations
Browse files Browse the repository at this point in the history
  • Loading branch information
fregante committed Dec 24, 2021
1 parent 9b36b90 commit 0acf9b9
Showing 1 changed file with 34 additions and 3 deletions.
37 changes: 34 additions & 3 deletions index.js
Original file line number Diff line number Diff line change
Expand Up @@ -98,15 +98,46 @@ const config = {
ignoreUsedVariables: true,
},
],

"unicorn/prevent-abbreviations": [
"error",
{
extendDefaultReplacements: false,
replacements: {
err: {
error: true,
acc: false,
arg: false,
args: false,
db: false,
dev: false,
doc: false,
docs: false,
env: false,
err: false,
ev: false,
evt: false,
ext: false,
exts: false,
fn: false,
func: {
fn: true,
function: false,
},
i: false,
j: false,
num: false,
obj: false,
param: false,
params: false,
prev: false,
prod: false,
prop: false,
props: false,
ref: false,
refs: false,
str: false,
var: false,
vars: false,
},
ignore: ["semVer", "SemVer"],
},
],
"unicorn/filename-case": [
Expand Down

0 comments on commit 0acf9b9

Please sign in to comment.