Coloring broken after //import comment on the import declaration line #774
Closed
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
//....
This will break coloring if we used // eslint-disable-line no-hoge-import
-like comments.
Metadata
Assignees
Labels
No labels