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

[fix] running lint as a seperate CI task and fixes all errors to ensure CI passes #463

Merged
merged 6 commits into from May 12, 2020

Conversation

gabrielcsapo
Copy link
Contributor

fixes #437

Motivation

To ensure that linting is run. The previous linting setup was not catching all issues before they were submitted.

I had to turn off no-unused-vars because it does not currently work with imported types. The issue here typescript-eslint/typescript-eslint#1856.

Copy link
Member

@rwjblue rwjblue 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!! For future PR's its probably easier to make two commits (one that is the config / CI changes, and another that is yarn eslint . --fix). Makes it much easier to review IMHO.

.eslintrc.js Outdated Show resolved Hide resolved
@gabrielcsapo
Copy link
Contributor Author

@rwjblue I found a bug in lib/cli.js it looks like we were passing a string but it was expecting an error instance. Which would silently fail and cause the ui to write undefined.

@gabrielcsapo
Copy link
Contributor Author

bump on merging this as it fixes an error with ui.writeError as well

@stefanpenner stefanpenner merged commit 337f616 into broccolijs:master May 12, 2020
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.

Run linting in CI directly (not through mocha)
3 participants