Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add tsc to check TypeScript files #575

Merged
merged 8 commits into from
Jan 13, 2023
Merged

Conversation

zirkelc
Copy link
Contributor

@zirkelc zirkelc commented Jan 12, 2023

I implemented a linter for the TypeScript compiler tsc --noEmit command. This command checks for TypeScript errors without compiling the actual project.

Copy link
Member

@ocean90 ocean90 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for working on this! Looks like the tests are currently failing on Windows. Can you try using EOL as in

const stdoutFile1 = `.${sep}file1.py:5:9: E211 whitespace before '('${EOL}.${sep}file1.py:26:1: E305 expected 2 blank lines after class or function definition, found 1`;
?

action.yml Outdated Show resolved Hide resolved
src/linters/tsc.js Outdated Show resolved Hide resolved
@zirkelc zirkelc requested a review from ocean90 January 13, 2023 12:10
Copy link
Member

@ocean90 ocean90 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@zirkelc
Copy link
Contributor Author

zirkelc commented Jan 13, 2023

Sure, sorry forgot that! :-)

@ocean90 ocean90 merged commit be8d7be into wearerequired:master Jan 13, 2023
@github-actions github-actions bot locked as resolved and limited conversation to collaborators Jan 24, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants