Skip to content
This repository was archived by the owner on Nov 16, 2023. It is now read-only.
This repository was archived by the owner on Nov 16, 2023. It is now read-only.

Option to lint entire workspace and/or to prevent running apps with tslint errors #38

Closed
@justingrant

Description

@justingrant

I just switched from create-react-app-typescript (which is now deprecated) to CRA 2.1.1 with TypeScript support. There are two gaps I'm trying to address.

I followed the VSCode setup instructions for create-react-app-typescript and it's working great to find lint errors in files that I'm currently editing. But I can't figure out how to lint my entire project, including files that aren't currently open in VSCode, whenever I load my workspace or change a file that might impact other files. Is there a way to do this by default?

The second thing I'm missing from other non-CRA projects is the ability to block npm start if there are lint errors. This comment from @WorldMaker pointed to typescript-tslint-plugin as the missing tslint support in CRA 2.x. Can typescript-tslint-plugin force CRA 2.x's npm start to report lint errors, just like it will for "compiler" errors that are caught by Babel?

Metadata

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