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: Update eslint to 9.3.0 #578

Merged
merged 32 commits into from
May 30, 2024
Merged

deps: Update eslint to 9.3.0 #578

merged 32 commits into from
May 30, 2024

Conversation

emil-litwiniec
Copy link
Contributor

@emil-litwiniec emil-litwiniec commented May 24, 2024

Please check if the PR fulfills these requirements

  • The commit message follows our guidelines
  • Tests for the changes have been added (for bug fixes/features)
  • Docs have been added / updated (for bug fixes / features)

What kind of change does this PR introduce?

Update eslint to new major version 9. It requires to use a new flat config, meaning all previous .eslintrc or eslintrc.json files needed te be changed. Since some plugins are not 100% compatible with new version - compatibility utils from eslint were used.

Additional changes worth mentioning:

  • simplify webapp related configs to extend webapp-core instead of duplicating whole config file
  • since v9 eslint set unused disable rule as default, that revealed various places where line disables were obsolete - they were removed

"command": "docker-compose run --rm --no-deps --entrypoint /bin/bash workers /app/packages/workers/scripts/runtime/run_lint.sh"
"commands": [
"docker-compose run --rm --no-deps --entrypoint /bin/bash workers /app/packages/workers/scripts/runtime/run_lint.sh",
"pnpm nx run workers:lint:js"
Copy link
Contributor Author

Choose a reason for hiding this comment

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

@mkleszcz Let me know what do you think about this change, please. For some reason eslint config couldn't resolve the path to root config that is extended when run from the bash script.

@@ -39,29 +41,29 @@
"@types/jest": "^29.5.12",
"@types/node": "20.12.12",
"@types/ramda": "^0.28.25",
"@types/react": "^18.3.1",
"@types/react": "^18.3.3",
Copy link
Contributor Author

@emil-litwiniec emil-litwiniec May 27, 2024

Choose a reason for hiding this comment

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

There is some weird dep that breaks the react types, which makes docs fail to build from time to time when new pnpm lock is being created. I need to investigate it and pin naughty package to a specific version.

@emil-litwiniec emil-litwiniec marked this pull request as ready for review May 27, 2024 11:25
@mkleszcz mkleszcz merged commit b610ad3 into master May 30, 2024
55 of 56 checks passed
@mkleszcz mkleszcz deleted the deps/eslint branch May 30, 2024 15:48
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