-
Notifications
You must be signed in to change notification settings - Fork 27.5k
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 between lint-check and lint-staged #74503
Conversation
All broken links are now fixed, thank you! |
@@ -34,7 +34,7 @@ | |||
"git-clean": "git clean -d -x -e node_modules -e packages -f", | |||
"typescript": "tsc --noEmit", | |||
"lint-typescript": "turbo run typescript", | |||
"lint-eslint": "cross-env ESLINT_USE_FLAT_CONFIG=false eslint . --ext js,jsx,ts,tsx --config .eslintrc.cli.json --no-eslintrc", | |||
"lint-eslint": "cross-env ESLINT_USE_FLAT_CONFIG=false eslint . --ext js,jsx,mjs,ts,tsx,mts,mdx --config .eslintrc.json --no-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.
Should we delete the .eslintrc.cli.json
file now that its unused?
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 that is meant for use with vscode to not apply as many checks.
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.
How would vscode know to use that file? 🤔
Stats from current PRDefault BuildGeneral
Client Bundles (main, webpack)
Legacy Client Bundles (polyfills)
Client Pages
Client Build Manifests
Rendered Page Sizes
Edge SSR bundle Size
Middleware size
Next Runtimes
build cache
Diff detailsDiff for main-HASH.jsDiff too large to display |
@@ -232,7 +232,7 @@ | |||
"parser": "eslint-mdx", | |||
"rules": { | |||
"react/jsx-no-undef": "off", | |||
"react/self-closing-comp": "error" | |||
"react/self-closing-comp": "off" |
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.
Not sure if you intended to change this but its probably fine
This ensures we match our linting checks between
lint-staged
and ourlint-eslint
step as previously we weren't linting all the files we should have been leading to errors showing up whenlint-stage
would run but not when our normal lint step ran.x-ref: slack thread