-
Notifications
You must be signed in to change notification settings - Fork 658
chore(deps): Bump eslint-plugin-primer-react to v5.4.0 and update the code accordingly #4766
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
Changes from all commits
cede298
77ef1f7
1709ab2
ad8af92
f441fed
d08d28f
b51bca3
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,5 @@ | ||
| --- | ||
| "@primer/react": patch | ||
| --- | ||
|
|
||
| chore(deps): Update eslint-plugin-primer-react to latest |
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -75,7 +75,6 @@ module.exports = { | |
| ], | ||
| }, | ||
| ], | ||
| 'primer-react/no-deprecated-colors': ['warn', {checkAllStrings: true}], | ||
|
|
||
| // Overrides from updating plugin:github | ||
| 'filenames/match-regex': 'off', | ||
|
|
@@ -89,6 +88,7 @@ module.exports = { | |
| 'github/no-inner-html': 'off', | ||
| 'github/role-supports-aria-props': 'off', | ||
| 'no-restricted-syntax': 'off', | ||
| 'primer-react/a11y-use-next-tooltip': 'off', | ||
|
Member
Author
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. I disabled this because of having the source code of Tooltip v1 in this repo 🫠 We don't want eslint fixing our tooltip v1. As far as I have checked, we don't use any Tooltip v1 under the hood. So I think keeping this rule disabled until we remove the Tooltip v1 component is fine. Let me know if you think otherwise or if I missed anything! |
||
| }, | ||
| overrides: [ | ||
| // rules which apply only to JS | ||
|
|
@@ -241,7 +241,6 @@ module.exports = { | |
| 'jsx-a11y/label-has-for': 'off', | ||
| '@typescript-eslint/no-unnecessary-condition': 'off', | ||
| '@typescript-eslint/no-unused-vars': 'off', | ||
| 'primer-react/no-deprecated-colors': ['error', {skipImportCheck: true}], | ||
| 'no-redeclare': 'off', | ||
| 'ssr-friendly/no-dom-globals-in-module-scope': 'off', | ||
| 'ssr-friendly/no-dom-globals-in-react-fc': 'off', | ||
|
|
||
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 |
|---|---|---|
|
|
@@ -41,6 +41,7 @@ export const GroupWithSubtleTitleOldAPI = () => { | |
| under features. | ||
| </p> | ||
| <ActionList selectionVariant="multiple" role="menu" showDividers aria-label="Reviewers"> | ||
| {/* eslint-disable-next-line primer-react/no-deprecated-props */} | ||
|
Member
Author
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. we intentionally keep the deprecated API for VRT. |
||
| <ActionList.Group title="Everyone"> | ||
| {users.slice(2).map(user => ( | ||
| <ActionList.Item | ||
|
|
@@ -80,6 +81,7 @@ export const GroupWithFilledTitleOldAPI = () => { | |
| under features. | ||
| </p> | ||
| <ActionList selectionVariant="multiple" role="menu" showDividers aria-label="Reviewers"> | ||
| {/* eslint-disable-next-line primer-react/no-deprecated-props */} | ||
| <ActionList.Group title="Everyone" variant="filled"> | ||
| {users.slice(2).map(user => ( | ||
| <ActionList.Item | ||
|
|
||
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.
we removed this rule primer/eslint-plugin-primer-react#174