Skip to content

Support .js and .ts file extensions in CLI check#58

Open
arnavsurve wants to merge 1 commit intomainfrom
feature/support-js-ts-extensions
Open

Support .js and .ts file extensions in CLI check#58
arnavsurve wants to merge 1 commit intomainfrom
feature/support-js-ts-extensions

Conversation

@arnavsurve
Copy link
Contributor

The babel parser already has typescript and jsx plugins enabled, and many rules (e.g. no-type-assertion, prefer-guard-clauses, safe-json-parse) are pure TS rules with no JSX involved. The only thing blocking .js/.ts files was the extension filter in the CLI check command.

Changes

  • Added .js and .ts to the supported file extensions in src/cli/check.ts

Testing

All 401 existing tests pass.

@arnavsurve
Copy link
Contributor Author

@danielchen0

@arnavsurve
Copy link
Contributor Author

@danielchen0 bump

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant