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

deps: Bump eslint suite to v9 #1565

Merged
merged 6 commits into from
Mar 5, 2025
Merged

deps: Bump eslint suite to v9 #1565

merged 6 commits into from
Mar 5, 2025

Conversation

0b5vr
Copy link
Contributor

@0b5vr 0b5vr commented Dec 27, 2024

This PR bumps eslint suite to v9.

This also migrates the existing eslint configs to the new flat config.

See the commit logs for details.

Migrated the eslint config using `npx @eslint/migrate-config .eslintrc.json`, and did not work flawlessly, obviously

I had to include config to examples into the root config file.
Instead, we are able to delete `.eslintrc` that existed for each example directory though

`require-atomic-updates` (has been set to `off`) does not exist in the default configs, so removed the line

`@typescript-eslint/no-unnecessary-type-assertion` requires a type assertion, removed it for now
@0b5vr 0b5vr added dependencies Pull requests that update a dependency file Refactor Cool code is cool labels Dec 27, 2024
@0b5vr 0b5vr added this to the next milestone Dec 27, 2024
@0b5vr 0b5vr self-assigned this Dec 27, 2024
@0b5vr 0b5vr removed this from the next milestone Jan 16, 2025
@0b5vr 0b5vr requested a review from yue4u March 4, 2025 02:26
Comment on lines -208 to +210
parentBoneName ?? (parentBoneName = 'hipsParent');
if (parentBoneName == null) {
parentBoneName = 'hipsParent';
}
Copy link
Contributor

Choose a reason for hiding this comment

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

Do you mean

Suggested change
parentBoneName ?? (parentBoneName = 'hipsParent');
if (parentBoneName == null) {
parentBoneName = 'hipsParent';
}
parentBoneName ??= 'hipsParent'

Copy link
Contributor

@yue4u yue4u left a comment

Choose a reason for hiding this comment

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

Tested locally and found two issues

  1. .eslintrc.json is a leftover?
  2. lint runs fine for packages but shows warning when opening eslint.config.mjs and jest.config.mjs

@0b5vr
Copy link
Contributor Author

0b5vr commented Mar 5, 2025

  1. .eslintrc.json is leftover?

.eslintrc.json is definitely a leftover. I'm gonna remove it.

  1. lint runs fine for packages but shows warning when opening eslint.config.mjs and jest.config.mjs

seem to be errors of @typescript-eslint/naming-convention that can be easily fixed. I will take care of this.

0b5vr added 2 commits March 5, 2025 16:20
These `@typescript-eslint/naming-convention` errors can be easily fixed by inserting brackets

Addresses: #1565 (review)
@0b5vr 0b5vr merged commit 97312c3 into dev Mar 5, 2025
5 checks passed
@0b5vr 0b5vr deleted the eslint-v9 branch March 5, 2025 08:05
@yue4u yue4u added this to the 3.3.5 milestone Mar 5, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
dependencies Pull requests that update a dependency file Refactor Cool code is cool
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants