Skip to content

TypeScript conflict in templates with stylistic semi: false #545

@m-shum

Description

@m-shum

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

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions