tsc-files icon indicating copy to clipboard operation
tsc-files copied to clipboard

fix: handle JS files when allowJs and checkJs options are set to true

Open mkarajohn opened this issue 9 months ago • 1 comments

This pr allows the tool to handle JS files as well when the allowJs and checkJs are explicitly enabled in the user's config.

Resolves issues in the scenario when tsc-files runs as part of lint-staged over ts, tsx, js and jsx files.

If we do not handle JS files in this scenario, then they get passed along with the non-files arguments and we get the error about not being possible to mix -p along with files

mkarajohn avatar May 08 '24 17:05 mkarajohn