Skip to content

How can I get compilation error without build? #2950

Open
@zuoez02

Description

@zuoez02

Version

3.1.1

Node and OS info

Node 8.14.0 / yarn 1.12.1 / macOS 10.14

Steps to reproduce

  1. Generate a vue-typescript project.
  2. Write some code having ts-error.
  3. Run npm run lint and it reports nothing error.
  4. Run npm run build and it said the ts-error

What is expected?

Want a way to get ts error without build.

What is actually happening?

Can't get ts-error without build


If I use .ts file to write vue component, it actually goes well by using tsc --noEmit -p .. But it can't in .vue file. What should I do?

I want this feature because I need to check the code whether has problem before commit.

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