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 was archived by the owner on Feb 1, 2022. It is now read-only.
Copy file name to clipboardexpand all lines: src/bootlint.js
+6-50
Original file line number
Diff line number
Diff line change
@@ -617,57 +617,31 @@ var LocationIndex = _location.LocationIndex;
617
617
}
618
618
});
619
619
/*
620
-
addLinter('E006', function lintInputGroupFormControlTypes($, reporter) {
621
-
var selectInputGroups = $('.input-group select');
622
-
if (selectInputGroups.length) {
623
-
reporter('`.input-group` contains a `<select>`; this should be avoided as `<select>`s cannot be fully styled in WebKit browsers', selectInputGroups);
624
-
}
625
-
var textareaInputGroups = $('.input-group textarea');
626
-
if (textareaInputGroups.length) {
627
-
reporter('`.input-group` contains a `<textarea>`; only text-based `<input>`s are permitted in an `.input-group`', textareaInputGroups);
628
-
}
629
-
});
630
-
*/
631
-
/*
632
620
addLinter('E007', function lintBootstrapJs($, reporter) {
633
621
var scripts = bootstrapScriptsIn($);
634
622
if (scripts.longhands.length && scripts.minifieds.length) {
635
623
reporter('Only one copy of Bootstrap\'s JS should be included; currently the webpage includes both bootstrap.js and bootstrap.min.js', scripts.longhands.add(scripts.minifieds));
reporter('Button and input sizing within `.input-group`s can cause issues. Instead, use input group sizing classes `.input-group-lg` or `.input-group-sm`',badInputGroupSizing);
650
637
}
651
638
});
652
-
*/
653
-
/*
654
-
addLinter('E010', function lintMultipleFormControlsInInputGroup($, reporter) {
655
-
var badInputGroups = $('.input-group').filter(function (i, inputGroup) {
reporter('`.input-group` and `.form-group` cannot be used directly on the same element. Instead, nest the `.input-group` within the `.form-group`', badMixes);
642
+
reporter('`.input-group` and `.form-group`/`.row`/`.form-row` cannot be used directly on the same element. Instead, nest the `.input-group` within the `.form-group`/`.row`/`.form-row`',badMixes);
reporter('`.input-group` must have a `.form-control`and either an `.input-group-addon` or an `.input-group-btn`.', badInputGroups);
994
+
reporter('`.input-group` must have at least one `.form-control`/`.custom-select`/`.custom-file` child and also at least one `.input-group-prepend`/`.input-group-append` child.',badInputGroups);
1038
995
}
1039
996
});
1040
-
*/
1041
997
/*
1042
998
addLinter('E045', function lintImgResponsiveOnNonImgs($, reporter) {
1043
999
var imgResponsiveNotOnImg = $('.img-responsive:not(img)');
0 commit comments