Skip to content
This repository was archived by the owner on Oct 19, 2021. It is now read-only.
This repository was 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

@Ionaru

Description

@Ionaru

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';
});

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions