Skip to content

Commit 8acb38e

Browse files
Merge pull request #44 from dignifiedquire/cb-hell
feat(lint): restrict nesting to avoid callback hell
2 parents c4cf2a9 + 0f11049 commit 8acb38e

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

config/eslintrc.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,3 +27,5 @@ rules:
2727
no-warning-comments: 1
2828
quote-props: [2, 'as-needed']
2929
require-yield: 2
30+
max-nested-callbacks: [2, 4]
31+
max-depth: [2, 4]

0 commit comments

Comments
 (0)