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

Bump eslint-plugin-unicorn from 46.0.0 to 47.0.0 #720

Closed
wants to merge 2 commits into from
Closed

Bump eslint-plugin-unicorn from 46.0.0 to 47.0.0 #720

wants to merge 2 commits into from

Conversation

larouxn
Copy link

@larouxn larouxn commented Jun 7, 2023

Upgrades eslint-plugin-unicorn from 46.0.0 to 47.0.0.

It appears there's an issue with current xo + eslint at 8.40.0 + outdated eslint-plugin-unicorn.

Apparently upgrading eslint-plugin-unicorn resolves the issue for people.

Note, this change Likely requires dropping support for EOL Node 14.

May resolve #718 once a new version of xo is released.

@larouxn
Copy link
Author

larouxn commented Jun 7, 2023

Need to address linting errors due to the enablement of prefer-at.

test/options-manager.js:102:33
  ✖  102:33  Prefer .at(…) over [….length - index].                                 unicorn/prefer-at
  ✖  128:33  Prefer .at(…) over [….length - index].                                 unicorn/prefer-at
  ✖  129:36  Prefer .at(…) over [….length - index].                                 unicorn/prefer-at
  ✖  433:36  Prefer .at(…) over [….length - index].                                 unicorn/prefer-at

@larouxn
Copy link
Author

larouxn commented Jun 7, 2023

Looks like Node 14 needs a bit of a custom solution compared to Node 16, 18, and 20. Tested 20 locally.

https://github.com/xojs/xo/actions/runs/5197621435/jobs/9372694163?pr=720

I'm hesitant to suggest doing anything for Node 14 at this point since it's already end-of-life as of April 30th this year. In fact I think we should drop support for Node 14 and add Node 20 as a CI target.

Screenshot from 2023-06-07 17-23-04

@larouxn
Copy link
Author

larouxn commented Jun 7, 2023

Closing in favour of the following.

Note I still think we should drop Node 14 support and add Node 20 to the CI matrix.

@larouxn larouxn closed this Jun 7, 2023
@larouxn larouxn deleted the bump_eslint_plugin_unicorn_to_47.0.0 branch June 7, 2023 13:35
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.

Fails with eslint 8.40.0: TypeError: Cannot read properties of undefined (reading 'getAllComments')
1 participant