Skip to content

Commit

Permalink
Add eslint rules
Browse files Browse the repository at this point in the history
  • Loading branch information
krisztianb committed Nov 22, 2020
1 parent 76406e8 commit adb524f
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions .eslintrc.json
Original file line number Diff line number Diff line change
Expand Up @@ -138,7 +138,18 @@
],

// plugin: unicorn
"unicorn/custom-error-definition": ["error"],
"unicorn/explicit-length-check": ["error"],
"unicorn/filename-case": ["error", { "case": "snakeCase" }],
"unicorn/new-for-builtins": ["error"],
"unicorn/no-abusive-eslint-disable": ["error"],
"unicorn/no-array-instanceof": ["error"],
"unicorn/no-null": ["error"],
"unicorn/no-unused-properties": ["error"],
"unicorn/prefer-includes": ["error"],
"unicorn/prefer-starts-ends-with": ["error"],
"unicorn/prefer-ternary": ["error"],
"unicorn/prefer-text-content": ["error"],

// plugin: jsdoc
"jsdoc/check-param-names": ["error"],
Expand Down

0 comments on commit adb524f

Please sign in to comment.