-
Notifications
You must be signed in to change notification settings - Fork 46
chore: bump ESLint to v9 #371
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
Conversation
3c9c7ee
to
9df1b92
Compare
9df1b92
to
9513ca3
Compare
@@ -24,6 +24,7 @@ await run(testDir, 'cheerio-scraper', { | |||
switch (label) { | |||
case 'START': return handleStart(context); | |||
case 'DETAIL': return handleDetail(context); | |||
default: throw new Error(`Unrecognized request label: ${label}`); |
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.
Throwing an exception might be too harsh, but we won't get here anyway, right? Alternatively, we could log the same message with log.error
packages/actor-scraper/web-scraper/src/internals/bundle.browser.ts
Outdated
Show resolved
Hide resolved
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.
i'd vote for adding prettier/biome right ahead to fix the wrong formatting of the changed imports
packages/actor-scraper/camoufox-scraper/src/internals/crawler_setup.ts
Outdated
Show resolved
Hide resolved
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.
Please add biome while you're at it 🙂
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.
LGTM if you manage to fix the tests 🙂 Good stuff!
b9bf747
to
253de12
Compare
I noticed we're still keeping the We'll probably want to switch this before merging this PR, right? |
Yeah, old configs should be removed, eslint 9 won't read them anyway. |
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.
too huge to be reviewed 🙃
With the last commit, I consolidated the eslint setup for the actual source files and the website / docs examples. This uncovered some issues (which I fixed), and now I have this last one here: Was |
I think |
Alright, I'll change it to |
Updates the code linting tooling to the latest versions and fixes the newly arisen issues.
Closes #338