-
Notifications
You must be signed in to change notification settings - Fork 37
fix: linting #95
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
fix: linting #95
Conversation
The latest updates on your projects. Learn more about Vercel for Git ↗︎
|
|
WalkthroughThe recent updates primarily focus on standardizing ESLint configurations across various projects. The Changes
Thank you for using CodeRabbit. We offer it for free to the OSS community and would appreciate your support in helping us grow. If you find it useful, would you consider giving us a shout-out on your favorite social media? TipsChatThere are 3 ways to chat with CodeRabbit:
Note: Be mindful of the bot's finite context window. It's strongly recommended to break down tasks such as reading entire modules into smaller chunks. For a focused discussion, use review comments to chat about specific files and their changes, instead of using the PR comments. CodeRabbit Commands (invoked as PR comments)
Additionally, you can add CodeRabbit Configration File (
|
af5aee9
to
985ad9a
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.
Actionable comments posted: 0
Review Details
Configuration used: CodeRabbit UI
Review profile: CHILL
Files ignored due to path filters (16)
apps/homepage2/package.json
is excluded by!**/*.json
apps/registry/package.json
is excluded by!**/*.json
package.json
is excluded by!**/*.json
packages/eslint-config-custom/package.json
is excluded by!**/*.json
packages/jsonresume-theme-cv/package.json
is excluded by!**/*.json
packages/jsonresume-theme-flat/package.json
is excluded by!**/*.json
packages/jsonresume-theme-full/package.json
is excluded by!**/*.json
packages/jsonresume-theme-onepage/package.json
is excluded by!**/*.json
packages/jsonresume-theme-spartacus/package.json
is excluded by!**/*.json
packages/jsonresume-theme-standard/package.json
is excluded by!**/*.json
packages/jsonresume-theme-tailwind/package.json
is excluded by!**/*.json
packages/tsconfig/package.json
is excluded by!**/*.json
packages/ui/package.json
is excluded by!**/*.json
pnpm-lock.yaml
is excluded by!pnpm-lock.yaml
,!**/*.yaml
themes/papirus/package.json
is excluded by!**/*.json
themes/stackoverflow/package.json
is excluded by!**/*.json
Files selected for processing (4)
- apps/homepage2/.eslintrc.js (1 hunks)
- packages/jsonresume-theme-cv/.eslintrc (1 hunks)
- packages/jsonresume-theme-standard/.eslintrc (1 hunks)
- packages/jsonresume-theme-tailwind/.eslintrc (1 hunks)
Files skipped from review due to trivial changes (4)
- apps/homepage2/.eslintrc.js
- packages/jsonresume-theme-cv/.eslintrc
- packages/jsonresume-theme-standard/.eslintrc
- packages/jsonresume-theme-tailwind/.eslintrc
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 should fix any issues we encountered.
Important lessons:
- do not use
eslint@9
or above (we can do it, but we also need to migrate all configs). - do not add
eslint.config.js
files because they enable the new "flat config" mode ofeslint@8
.
env: { | ||
browser: true, | ||
es2021: true, | ||
jquery: true, |
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 enables the usage of $
in the code.
@@ -52,13 +53,11 @@ | |||
"uuid": "^9.0.0" | |||
}, | |||
"devDependencies": { | |||
"@babel/eslint-parser": "^7.24.5", |
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 am not sure that I removed all unnecessary dependencies. Where did you use this dependency?
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.
can't remember +1 to remove
"@babel/eslint-parser": "^7.24.5", | ||
"eslint": "^9.3.0", | ||
"eslint-plugin-react": "^7.33.2" |
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 think in general, these are unnecessary. Removed them.
"license": "MIT", | ||
"devDependencies": { | ||
"@babel/eslint-parser": "^7.24.5", | ||
"eslint": "^9.3.0", |
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.
Unfortunately this is quite dangerous. We use eslint@8
. eslint@9
brings breaking changes with regards to the configuration and bringing it into the project will create all kinds of nightmares.
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.
@thomasdavis this was the main mistake, I think. Adding this file means "opting into the new flat config" for eslint
. eslint
will then ignore all .eslintrc
files.
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.
yeah great to know
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 awesome, great work.
- noted to not go to eslint9 (i'm in no rush)
still working on this