no_throwing_strings rule does not trigger when using round brackets
Ionaru opened this issue · 0 comments
Ionaru commented
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';
});