Skip to content

Commit 9e23c4a

Browse files
committed
added rule to prevent try-catch usage in tests
1 parent 528a7dc commit 9e23c4a

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

test/.eslintrc

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@
77
],
88
"rules": {
99
"mocha/no-exclusive-tests": 2,
10-
"max-nested-callbacks": 0
10+
"max-nested-callbacks": 0,
11+
"no-restricted-syntax": [2, "TryStatement"]
1112
}
1213
}

0 commit comments

Comments
 (0)