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

Miscellaneous cleanup #35

Merged
merged 10 commits into from
Oct 10, 2024
Merged

Miscellaneous cleanup #35

merged 10 commits into from
Oct 10, 2024

Conversation

sheck
Copy link
Member

@sheck sheck commented Oct 8, 2024

I pulled these out of an upcoming branch for a bug fix as they weren't directly related to the problem at hand.

Let's make sure our naming is consistent. This is how it is written on
the ESLint docs site.
Having the prefix makes it easier to quickly tell which commits were
generated. Has been helpful in local dev when generating multiple test
commits and needing to squash them down before pushing them up to
Github.
ESLint will return exit code 2 if something completely breaks during
parsing. Let's make sure that's exposed if we're looking for it.
@sheck sheck requested a review from a team as a code owner October 8, 2024 19:17
@sheck
Copy link
Member Author

sheck commented Oct 8, 2024

The issue behind the failure in the v6 run is resolved in #36 in this commit: 70f8eaa

Because the current file is blank, it was not causing the parsing issues
we are seeing with v1.0.0 and non-js files
Without this manual filtering, ESLint will attempt to lint files that
should be ignored (like ruby files). ESLint v9 has the `files` option in
the flat config, and earlier versions have the `--ext` CLI flag. Let's
aim for maximum compatibility and just ignore the files that don't end
in the extensions we want.
fix: Use extensions input to filter files passed to ESLint
@sheck sheck merged commit f880489 into main Oct 10, 2024
5 checks passed
@sheck sheck deleted the ns/misc branch October 10, 2024 22:36
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.

3 participants