-
Notifications
You must be signed in to change notification settings - Fork 272
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
Conversation
"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" |
There was a problem hiding this comment.
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", |
There was a problem hiding this comment.
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.
Please check if the PR fulfills these requirements
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
oreslintrc.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:
webapp
related configs to extendwebapp-core
instead of duplicating whole config fileeslint
set unused disable rule as default, that revealed various places where line disables were obsolete - they were removed