Skip to content

Inserting file-wide eslint-disable adds star #25

@hildjj

Description

@hildjj

Cmd-. an eslint error, select "Disable @peggyjs/no-unused-rules for the entire file", you get this added to the top of the file:

/** eslint-disable @peggyjs/no-unused-rules */

This doesn't work because of the extra asterisk at the beginning. What is desired is this:

/* eslint-disable @peggyjs/no-unused-rules */

See https://github.com/microsoft/vscode-eslint/blob/1fa8e21b20f83987d349ac500a571194695117a3/server/src/eslintServer.ts#L699 for where the insertion happens. getBlockComment should return [ "/*", "*/" ] as far as I can see, so I don't know why this is happening.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions