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

Update eslint v4 to v8, prettier v2 to v3 #288

Merged
merged 6 commits into from
Jun 28, 2024
Merged

Update eslint v4 to v8, prettier v2 to v3 #288

merged 6 commits into from
Jun 28, 2024

Conversation

lencioni
Copy link
Contributor

This brings our linter more up to date. I didn't go all the way to v9 because it is a pretty big change from v8.

This is probably best reviewed commit by commit.

I want to get these dependencies updated so things say fresh. eslint v9
is it out, but I'm only going to v8 first since v9 is a much larger
change.

I'll fix any errors in a followup.
This addresses a bunch of new errors that appeared after updating
eslint.
This plugin turns off all rules that might conflict with prettier. Since
we are using prettier here, this seems appropriate.
This makes the linter clean and happy.
After fixing a bunch of eslint errors, I needed to make some extra
tweaks to make the tests happier.
Just keeping things fresh!
@lencioni lencioni changed the title Update eslint v4 to v8 Update eslint v4 to v8, prettier v2 to v3 Jun 26, 2024
@@ -9,7 +9,7 @@ export default function validateArchive(totalBytes, entries) {
];
const fileSizes = entries.map((entry) => ({
name: entry.name,
size: entry.stats ? entry.stats.size : (entry.size || 0),
size: entry.stats ? entry.stats.size : entry.size || 0,
Copy link
Contributor

Choose a reason for hiding this comment

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

Not important but this change seemed to make things harder to read.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Yeah :/

@lencioni lencioni merged commit e1a488b into master Jun 28, 2024
4 checks passed
@lencioni lencioni deleted the eslint branch June 28, 2024 14:22
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.

2 participants