Open Ionaru opened 6 years ago
The no_throwing_strings rule does not trigger when using round brackets.
Consider the following code:
test -> throw 'moo' # Lint fails (correct)
test -> throw('moo') # Lint passes (incorrect)
test -> throw ('moo') # Lint passes (incorrect)
This is strange because the resulting javascript is the same:
test(function() { throw 'moo'; });
The no_throwing_strings rule does not trigger when using round brackets.
Consider the following code:
This is strange because the resulting javascript is the same: