Skip to content

Commit ff4ce02

Browse files
deminothmadalynrosegatsbybot
authoredJul 2, 2020
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 <3230904+madalynrose@users.noreply.github.com> * fix typo Co-authored-by: Madalyn <3230904+madalynrose@users.noreply.github.com> Co-authored-by: gatsbybot <mathews.kyle+gatsbybot@gmail.com>
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

+1-1
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)
Please sign in to comment.