Skip to content

Change some form handling rules #6

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

Merged
merged 1 commit into from
May 9, 2019
Merged

Change some form handling rules #6

merged 1 commit into from
May 9, 2019

Conversation

redbugz
Copy link
Contributor

@redbugz redbugz commented May 9, 2019

jsx-a11y/label-has-for is deprecated in future versions of eslint so we should disable it now in favor of label-as-associated control
https://github.com/evcohen/eslint-plugin-jsx-a11y/blob/master/docs/rules/label-has-for.md

fs-styles currently does not support nesting, so the default assert setting of both is too strict. Switching to either allows either nesting or using a for or htmlFor parameter. Until we move off of fs-styles this will prevent many spurious linting issues.
https://github.com/evcohen/eslint-plugin-jsx-a11y/blob/master/docs/rules/label-has-associated-control.md

jsx-a11y/label-has-for is deprecated in future versions of eslint so we should disable it now in favor of label-as-associated control
https://github.com/evcohen/eslint-plugin-jsx-a11y/blob/master/docs/rules/label-has-for.md

fs-styles currently does not support nesting, so the default `assert` setting of both is too strict. Switching to `either` allows either nesting or using a `for` or `htmlFor` parameter. Until we move off of fs-styles this will prevent many spurious linting issues.
https://github.com/evcohen/eslint-plugin-jsx-a11y/blob/master/docs/rules/label-has-associated-control.md
@joeycozza joeycozza merged commit ddeecb2 into master May 9, 2019
@joeycozza joeycozza deleted the htmlfor-changes branch May 9, 2019 16:16
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants