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

refactor: Upgrade ESLint #178

Merged
merged 8 commits into from
Feb 14, 2025
Merged

refactor: Upgrade ESLint #178

merged 8 commits into from
Feb 14, 2025

Conversation

nzakas
Copy link
Member

@nzakas nzakas commented Feb 11, 2025

Upgrades ESLint to v9 and fixes resulting linting errors.

This seemed like a necessary first step to address #177

Edit: It seems that the tests rely on the .eslintignore and .eslintrc.js files, so need to leave those.

@nzakas
Copy link
Member Author

nzakas commented Feb 11, 2025

Argh. It looks like the tests are intricately bound to the .eslintrc.cjs file, so attempting to upgrade breaks some tests. I'll need more time to dig into this mess.

@nzakas
Copy link
Member Author

nzakas commented Feb 12, 2025

Okay, I just disabled the tests that relied on the project files as there were already comments indicating that we meant to fix/remove them.

@mdjermanovic mdjermanovic changed the title chore: Upgrade ESLint refactor: Upgrade ESLint Feb 13, 2025
@mdjermanovic
Copy link
Member

Changed the tag to refactor as there are changes in the production code.

Copy link
Member

@mdjermanovic mdjermanovic left a comment

Choose a reason for hiding this comment

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

I believe there's no need for these.

  • eslint-plugin-n is already a dependency of eslint-config-eslint and enabled in it as plugin n.
  • We can use the default ecmaVersion: "latest" since eslint-plugin-n controls which features are available in the supported Node.js versions.
  • eslint-plugin-jsdoc's mode: "typescript" is already set in eslint-config-eslint

nzakas and others added 5 commits February 13, 2025 13:38
Co-authored-by: Milos Djermanovic <milos.djermanovic@gmail.com>
Co-authored-by: Milos Djermanovic <milos.djermanovic@gmail.com>
Co-authored-by: Milos Djermanovic <milos.djermanovic@gmail.com>
Co-authored-by: Milos Djermanovic <milos.djermanovic@gmail.com>
Copy link
Member

@mdjermanovic mdjermanovic left a comment

Choose a reason for hiding this comment

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

LGTM, thanks!

@mdjermanovic mdjermanovic merged commit 18d22b7 into main Feb 14, 2025
12 checks passed
@mdjermanovic mdjermanovic deleted the eslint-upgrade branch February 14, 2025 09:28
lirencai pushed a commit to lirencai/eslintrc that referenced this pull request Feb 17, 2025
* chore: Upgrade ESLint

* Add back eslintignore

* Skip tests relying on project files

* Update eslint.config.js

Co-authored-by: Milos Djermanovic <milos.djermanovic@gmail.com>

* Update eslint.config.js

Co-authored-by: Milos Djermanovic <milos.djermanovic@gmail.com>

* Update eslint.config.js

Co-authored-by: Milos Djermanovic <milos.djermanovic@gmail.com>

* Update package.json

Co-authored-by: Milos Djermanovic <milos.djermanovic@gmail.com>

* Add formatting config

---------

Co-authored-by: Milos Djermanovic <milos.djermanovic@gmail.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants