-
Notifications
You must be signed in to change notification settings - Fork 646
Upgrade eslint-plugin-primer-react to v8.4.0 and enable spread-props-first rule: warn #7071
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
base: main
Are you sure you want to change the base?
Changes from all commits
f4c7b83
16ed810
a4ddb52
0469266
b80a384
c9bbf7f
78870c8
9761da8
5dfd832
d754263
f6d5c58
bc83be9
2d9729f
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
| Original file line number | Diff line number | Diff line change | ||||
|---|---|---|---|---|---|---|
|
|
@@ -22,7 +22,7 @@ | |||||
| "build:docs:preview": "NODE_OPTIONS=--openssl-legacy-provider script/build-docs preview", | ||||||
| "build:components.json": "npm run build:components.json -w @primer/react", | ||||||
| "build:hooks.json": "npm run build:hooks.json -w @primer/react", | ||||||
| "lint": "eslint '**/*.{js,ts,tsx,md,mdx}' --max-warnings=0 --cache", | ||||||
| "lint": "eslint '**/*.{js,ts,tsx,md,mdx}' --cache", | ||||||
|
Member
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Note for reviewer: We could add a number here which matches the current number of warnings for this one rule, but then we also have to keep it updated any time we fix a warning so that other warnings don't sneak into the gap
Suggested change
|
||||||
| "lint:css": "stylelint --rd -q --cache '**/*.css'", | ||||||
| "lint:css:fix": "npm run lint:css -- --fix", | ||||||
| "lint:fix": "npm run lint -- --fix", | ||||||
|
|
@@ -70,7 +70,7 @@ | |||||
| "eslint-plugin-mdx": "3.6.2", | ||||||
| "eslint-plugin-playwright": "^2.2.2", | ||||||
| "eslint-plugin-prettier": "^5.5.4", | ||||||
| "eslint-plugin-primer-react": "^8.2.0", | ||||||
| "eslint-plugin-primer-react": "^8.4.0", | ||||||
| "eslint-plugin-react": "^7.35.5", | ||||||
| "eslint-plugin-react-compiler": "^19.1.0-rc.2", | ||||||
| "eslint-plugin-react-hooks": "^5.2.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.
Note for reviewer: This is the only bad part about making the rule "warn" instead of "error". We open up warnings from other rules as well because there is no way to allow warnings from one rule.