-
Notifications
You must be signed in to change notification settings - Fork 280
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
chore(repo): Extend linting #1906
Conversation
🦋 Changeset detectedLatest commit: 2ae8894 The changes in this PR will be included in the next version bump. This PR includes changesets to release 12 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 |
How much of an effort would it be to to not use |
@LekoArts Not much of an effort, but it would make the |
32cf88c
to
3998f07
Compare
@@ -380,15 +380,6 @@ export interface OrganizationSuggestionJSON extends ClerkResourceJSON { | |||
updated_at: number; | |||
} | |||
|
|||
export interface OrganizationSuggestionJSON extends ClerkResourceJSON { |
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.
Note: This is an exact copy of the interface above it which ESLint didn't catch until now.
Is the addition of In CI you could still cache the |
@LekoArts There's actually no noticeable difference. I should note that |
The integration folder doesn't have a |
Ah, you are correct, it's a remnant of a past commit. Updated, thanks! |
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.
Description
Our current ESLint configuration was global which left a lot to be desired as each of our packages have unique requirements.
This PR extends leans on a generic set of ESLint configurations while also allowing for a lot of customizability at both the ESLint "feature"-level as well as the package-level.
Please focus on this commit as these are the changes: f2c3b64
The other changes are to appease Prettier.
Please Note:
In an effort to keep this PR as minimal as possible, I've disabled a number of rules. The plan is to re-enable them via follow-on PRs.)
Other Notes:
/integration
directory has been factored into NPM workspaces and, ultimately, Turborepo. This doesn't have any tangible change other than running linting along with the packages.tsconfig.lint.json
. If that does not exists, it moves on totsconfig.json
. Thelint
TSConfig was required in a few cases as the default one wasn't permissive enough with it'sincludes
/excludes
.Checklist
npm test
runs as expected.npm run build
runs as expected.Type of change
Packages affected
@clerk/clerk-js
@clerk/clerk-react
@clerk/nextjs
@clerk/remix
@clerk/types
@clerk/themes
@clerk/localizations
@clerk/clerk-expo
@clerk/backend
@clerk/clerk-sdk-node
@clerk/shared
@clerk/fastify
@clerk/chrome-extension
gatsby-plugin-clerk
build/tooling/chore