-
Notifications
You must be signed in to change notification settings - Fork 1.3k
New issue
Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? # to your account
Migrate to ESLint 9 with flat config and fix monorepo linting #7418
base: main
Are you sure you want to change the base?
Conversation
🦋 Changeset detectedLatest commit: 3023245 The changes in this PR will be included in the next version bump. This PR includes changesets to release 4 packages
Not sure what this means? Click here to learn what changesets are. Click here if you're a maintainer who wants to add another changeset to this PR |
939f081
to
e3d83e6
Compare
commit: |
built with Refined Cloudflare Pages Action⚡ Cloudflare Pages Deployment
|
18391b7
to
7dadacb
Compare
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.
this is great! but some small nitpicks
packages/insights/src/db/sql-user.ts
Outdated
@@ -110,7 +110,7 @@ export const dbAddUserToApplication = async (email: string, publicApiKey: string | |||
.insert(userApplicationMap) | |||
.values({ userId: user.userId, applicationId: app?.applicationId }) | |||
.execute(); | |||
} catch (e) { | |||
} catch (_e) { |
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.
better to just remove it, no?
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've noticed that the no-unused-vars
rule is disabled in several places, so I've disabled it here as well for consistency. In my opinion, it's better to maintain uniform rules across all packages in the monorepo. However, enabling this rule everywhere right now would introduce many errors, so perhaps it's best to address that separately in another PR.
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 meant } catch {
without the (e)
3ea8442
to
3d2aac9
Compare
3d2aac9
to
effaeb0
Compare
…dependencies deleted: .eslintrc.cjs
…validate-cli to include ESLint
…nfig files from tsconfig
effaeb0
to
3023245
Compare
@better-salmon a decision was made in the past to not use Nx to avoid unnecessary overhead. Maybe it would work well, but maybe it could cause bugs that are hard to pinpoint. Same with Turborepo I believe. Also such tooling might turn off potential contributions from devs that don't know the tool in question. TLDR: I think that if you rebase we can merge your PR :) |
What is it?
Description
This PR fixes a significant issue where ESLint wasn't functioning properly (silently crashing) across most of the monorepo files. The changes include:
eslint.config.js
by default in starters (Fix: [✨] Update your template to include eslint.config.js by default #6115)These improvements ensure proper linting across the entire codebase and enable better code quality enforcement going forward.
Checklist
pnpm change