Skip to content

Request: add quick-fix action for adding same-line disables, i.e. // eslint-disable-line #2088

@craigkovatch

Description

@craigkovatch

The current implementation of "disable rule for this line" results in unintentional behavior when the action is applied to a JSX element or attribute:

disable-rule-screencap.mov

The inline disable syntax is much more appropriate for this scenario:

Image

It would be really nice to expose a third quick-fix action to "disable rule for this line (inline)" for use in this scenario.

Alternatively it could be a user setting whether the existing action uses eslint-disable-line or eslint-disable-next-line. But I think surfacing a third option is better, because the choice is context-sensitive.

Metadata

Metadata

Assignees

No one assigned

    Labels

    feature-requestRequest for new features or functionality

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions