Skip to content

Coloring broken after //import comment on the import declaration line #774

Closed
@mysticatea

Description

TS and JS Grammar Extension version: 0.0.52

Code

import util from "util"
import chalk from "chalk" // import

const Levels = {
    0: { label: "DEBUG", color: chalk.gray.bold },
    1: { label: "INFO ", color: chalk.blueBright.bold },
    2: { label: "WARN ", color: chalk.magenta.bold },
    3: { label: "ERROR", color: chalk.red.bold },
}
type Level = keyof typeof Levels

//....

image

This will break coloring if we used // eslint-disable-line no-hoge-import-like comments.

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions