You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Feb 1, 2022. It is now read-only.
In the projects I work on, some developers just forget to add the form-control class on some elements, which cause these to look different than other elements. I would love a rule that required this class on the appropriate elements.
Similarly it would require that radio buttons & checkboxes be structured properly as .radio > label > input[type='radio'] or label.radio-inline > input[type='radio']
and .checkbox > label > input[type='checkbox'] or label.checkbox-inline > input[type='checkbox']
I'd be happy to write this rule and submit a PR, but I fist just wanted to check to see if this would even be a good idea at all.
The text was updated successfully, but these errors were encountered:
@ChrisMBarr I would gladly accept a PR for such a linter, with the caveat that it be disabled by default so that folks who've opted not to go "full Bootstrap" on their webpages don't get spurious warnings.
We don't currently have a proper infrastructure for disabled-by-default rules, but it'd be reasonably straightforward to add.
I'm willing to meet you halfway. If you PR your rule as a normal linter, I'd be happy to implement the disabled-by-default logic part.
In the projects I work on, some developers just forget to add the
form-control
class on some elements, which cause these to look different than other elements. I would love a rule that required this class on the appropriate elements.Similarly it would require that radio buttons & checkboxes be structured properly as
.radio > label > input[type='radio']
orlabel.radio-inline > input[type='radio']
and
.checkbox > label > input[type='checkbox']
orlabel.checkbox-inline > input[type='checkbox']
I'd be happy to write this rule and submit a PR, but I fist just wanted to check to see if this would even be a good idea at all.
The text was updated successfully, but these errors were encountered: