Skip to content

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 <[email protected]>
Co-authored-by: Milos Djermanovic <[email protected]>
Co-authored-by: Milos Djermanovic <[email protected]>
Co-authored-by: Milos Djermanovic <[email protected]>
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 <[email protected]>

* Update eslint.config.js

Co-authored-by: Milos Djermanovic <[email protected]>

* Update eslint.config.js

Co-authored-by: Milos Djermanovic <[email protected]>

* Update package.json

Co-authored-by: Milos Djermanovic <[email protected]>

* Add formatting config

---------

Co-authored-by: Milos Djermanovic <[email protected]>
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.

3 participants