Skip to content

svelte-check should fail when no files are checked #1952

@DetachHead

Description

@DetachHead

Description

tsc fails if no files were checked:

> tsc
error TS18003: No inputs were found in config file 'C:/project/tsconfig.json'. Specified 'include' paths were '[]' and 'exclude' paths were '[]'.


Found 1 error.

however svelte-check does not:

> svelte-check --tsconfig .\src\tsconfig.json
Debugger attached.

====================================
Loading svelte-check in workspace: c:\project
Getting Svelte diagnostics...

====================================
svelte-check found 0 errors and 0 warnings in 0 files

Proposed solution

fail if there were no files checked, as this almost certainly means there's an issue with your config

Alternatives

No response

Additional Information, eg. Screenshots

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    FixedFixed in master branch. Pending production release.contributions welcomepull requests for this issue welcomefeature requestNew feature or requestgood first issueGood for newcomers

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions