eslint icon indicating copy to clipboard operation
eslint copied to clipboard

TypeScript conflict in templates with stylistic semi: false

Open m-shum opened this issue 10 months ago • 2 comments

Environment



Package

@nuxt/eslint

Reproduction

https://codesandbox.io/p/devbox/elegant-sammet-kwkx7j?file=%2Feslint.config.mjs%3A8%2C5

This of course won't show the problem because codesandbox has their own linter that ignores whatever linting setup you add. Please see screenshots below.

Describe the bug

When setting semicolons to false in stylistic rules, highlighting breaks when using typescript. If a semicolon is added, the highlighting is corrected, but the linter flags it as an error, as per the stylistic rules.

Additional context

Image Image

Logs


m-shum avatar Feb 14 '25 21:02 m-shum

I can confirm that this is still happening, with no fancy changes besides semi: false on the stylistic rules.

gm112 avatar Jul 18 '25 19:07 gm112

What do you mean? semi is false by default. The highlighting error sounds like a bug of Vue language tools but not related to this project. When semi is set to false, you expect no semi whenever possible, isn't it? I think the rules work as expect.

antfu avatar Aug 01 '25 04:08 antfu