Is a project fully type-checked when using @typescript-eslint/parser? #6855
Closed
ehaynes99
started this conversation in
Technical Discussions
Replies: 1 comment 3 replies
-
No, rules that require type checking just read information from the TypeScript API. They don't ask for type errors or report any type errors from TypeScript. You can check this for yourself by adding clear type errors (e.g. I appreciate your openness in asking in a discussion - but please next time read the FAQs and try it out for yourself. |
Beta Was this translation helpful? Give feedback.
3 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I have a project where my build is doing 3 things
@typescript-eslint/parser
and includes several rules requiring type checkingtsc
withnoEmit
swc
I recently started wondering if the second step is redundant. Linting will emit errors if there is invalid TypeScript. Assuming that my lint task covers all files included in the tsconfig, is it safe to assume that everything would be type checked during linting, eliminating the need for a distinct check?
Beta Was this translation helpful? Give feedback.
All reactions