Skip to content

Commit

Permalink
feat(unicorn): add custom error definition rule
Browse files Browse the repository at this point in the history
  • Loading branch information
anantoghosh committed Sep 21, 2021
1 parent 458ec8e commit 33fab59
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions rules/unicorn-rules.js
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@ module.exports = {

/* unicorn extra rules */
'unicorn/prefer-ternary': ['error', 'only-single-line'],
'unicorn/custom-error-definition': ['error'],
'unicorn/prevent-abbreviations': [
'error',
{
Expand Down

0 comments on commit 33fab59

Please sign in to comment.