Skip to content
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

Add formfield-name #29

Merged
merged 3 commits into from
Nov 14, 2021
Merged

Add formfield-name #29

merged 3 commits into from
Nov 14, 2021

Conversation

taysea
Copy link
Collaborator

@taysea taysea commented Nov 12, 2021

What does this PR do?

Adds rule to check that FormField and its input have matching name. This ensures data is properly submitted with a form.

Where should the reviewer start?

lib/rules/formfield-name.js

Can you provide a link to an AST Explorer example that validates the rule works as expected?

https://astexplorer.net/#/gist/f47559f8d3bf9decaf79d8fd7b18bd19/9861b0bac896d4006a3cca9ca767bed024255f5e

Any background context you want to provide?

What are the relevant issues?

Closes #9

Screenshots (if appropriate)

Have docs been added/updated?

Yes.

Should this PR be mentioned in the release notes?

Added formfield-name

Is this change backwards compatible or is it a breaking change?

Backwards compatible.

@taysea taysea merged commit 7f346eb into master Nov 14, 2021
@taysea taysea deleted the formfield-name branch November 14, 2021 00:32
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.

Corresponding FormField and input names
2 participants