Skip to content
This repository has been archived by the owner on Oct 19, 2021. It is now read-only.

no_throwing_strings rule does not trigger when using round brackets #639

Open
Ionaru opened this issue Jul 26, 2018 · 0 comments
Open

no_throwing_strings rule does not trigger when using round brackets #639

Ionaru opened this issue Jul 26, 2018 · 0 comments

Comments

@Ionaru
Copy link

Ionaru commented Jul 26, 2018

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';
});
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant