Skip to content

Enable/disable 'global return' via comments? #2339

@jprichardson

Description

@jprichardson

In reference to: #1158 is it possible to enable/disable globalReturn via comments? Something like:

// skip test for windows
// eslint-disable global-return */
if (os.platform().indexOf('win') === 0) return
// eslint-enable global-return */

I didn't see anything in the documentation and tried a few permutations of global-return. Thanks.

Metadata

Metadata

Assignees

No one assigned

    Labels

    archived due to ageThis issue has been archived; please open a new issue for any further discussiontriageAn ESLint team member will look at this issue soon

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions