Skip to content

Commit ff4ce02

Browse files
deminothmadalynrosegatsbybot
authored
fix(eslint-config): Remove deprecated jsx-a11y/label-has-for rule (#25317)
* remove deprecated label-has-for eslint rule * add a comment in explaining the removal Co-authored-by: Madalyn <[email protected]> * fix typo Co-authored-by: Madalyn <[email protected]> Co-authored-by: gatsbybot <[email protected]>
1 parent e623913 commit ff4ce02

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

packages/gatsby/src/utils/eslint-config.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -89,7 +89,7 @@ export const eslintConfig = (schema: GraphQLSchema): CLIEngine.Options => {
8989
],
9090
},
9191
],
92-
"jsx-a11y/label-has-for": `warn`,
92+
//"jsx-a11y/label-has-for": `warn`, was deprecated and replaced with jsx-a11y/has-associated-control in v6.1.0
9393
"jsx-a11y/label-has-associated-control": `warn`,
9494
"jsx-a11y/lang": `warn`,
9595
"jsx-a11y/media-has-caption": `warn`,

0 commit comments

Comments
 (0)