UNPKG
eslint-plugin-mocha
Version:
latest (12.0.2)
12.0.2
12.0.1
12.0.0
11.3.0
11.2.0
11.1.0
11.0.0
10.5.0
10.4.3
10.4.2
10.4.1
10.4.0
10.3.0
10.2.0
10.1.0
10.0.5
10.0.4
10.0.3
10.0.2
10.0.1
10.0.0
9.0.0
8.2.0
8.1.0
8.0.0
7.0.1
7.0.0
6.3.0
6.2.2
6.2.1
6.2.0
6.1.1
6.1.0
6.0.0
5.3.0
5.2.1
5.2.0
5.1.0
5.0.0
4.12.1
4.12.0
4.11.0
4.10.1
4.10.0
4.9.0
4.8.0
4.7.0
4.6.0
4.5.1
4.5.0
4.4.0
4.3.0
4.2.0
4.1.0
4.0.0
3.0.0
2.2.0
2.1.0
2.0.0
1.1.0
1.0.0
0.5.1
0.5.0
0.4.0
0.3.0
0.2.2
0.2.1
0.2.0
0.1.1
0.1.0
Eslint rules for mocha.
lo1tuma/eslint-plugin-mocha
eslint-plugin-mocha
/
rules
/
mocha-return-rule.js
5 lines
•
239 B
JavaScript
View Raw
1
2
3
4
5
import
{ isReturnOfUndefined }
from
"../ast/return-statement.js"
;
export
function
isLiteralOrUndefinedReturn
(
node
) {
return
isReturnOfUndefined
(node) || node.
argument
?.
type
===
'Literal'
; }
//# sourceMappingURL=mocha-return-rule.js.map