Skip to content

Commit

Permalink
fix(eslint-config): Remove deprecated jsx-a11y/label-has-for rule (#2…
Browse files Browse the repository at this point in the history
…5317)

* 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]>
  • Loading branch information
3 people authored Jul 2, 2020
1 parent e623913 commit ff4ce02
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/gatsby/src/utils/eslint-config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -89,7 +89,7 @@ export const eslintConfig = (schema: GraphQLSchema): CLIEngine.Options => {
],
},
],
"jsx-a11y/label-has-for": `warn`,
//"jsx-a11y/label-has-for": `warn`, was deprecated and replaced with jsx-a11y/has-associated-control in v6.1.0
"jsx-a11y/label-has-associated-control": `warn`,
"jsx-a11y/lang": `warn`,
"jsx-a11y/media-has-caption": `warn`,
Expand Down

0 comments on commit ff4ce02

Please sign in to comment.