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

[no-attributes-combination] new rule request #1746

Open
serhiistotskyi opened this issue Mar 19, 2024 · 0 comments
Open

[no-attributes-combination] new rule request #1746

serhiistotskyi opened this issue Mar 19, 2024 · 0 comments
Labels
package: eslint-plugin-template Angular Template rules triage This issue needs to be looked at and categorized by a maintainer

Comments

@serhiistotskyi
Copy link

Description and reproduction of the issue

I'd like to forbid usage of formControl or formControlName directives in conjunction with disabled input because then it may cause inconsistencies in disabled state handling

{
  "rules": {
    "@angular-eslint/template/no-attributes-combination": ["error", 
      [
          ["formControl", "disabled"],
          ["formControlName", "disabled"],
      ]
    ]
  }
}

I actually have a prototype of this rule with tests for specific case (without configuration) and could contribute it but just wanted to double check with you

@serhiistotskyi serhiistotskyi added package: eslint-plugin-template Angular Template rules triage This issue needs to be looked at and categorized by a maintainer labels Mar 19, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
package: eslint-plugin-template Angular Template rules triage This issue needs to be looked at and categorized by a maintainer
Projects
None yet
Development

No branches or pull requests

1 participant