Skip to content
This repository has been archived by the owner on Feb 1, 2022. It is now read-only.

Commit

Permalink
dist
Browse files Browse the repository at this point in the history
  • Loading branch information
Herst committed Sep 20, 2017
1 parent 6c484e6 commit 5467274
Showing 1 changed file with 4 additions and 28 deletions.
32 changes: 4 additions & 28 deletions dist/browser/bootlint.js
Original file line number Diff line number Diff line change
Expand Up @@ -12763,42 +12763,18 @@ var LocationIndex = _location.LocationIndex;
});
addLinter('E017', function lintBlockCheckboxes($, reporter) {
var badCheckboxes = $('.checkbox').filter(function (i, div) {
return $(div).filter(':has(>label>input[type="checkbox"])').length <= 0;
return $(div).filter(':has(>label.form-check-label>input[type="checkbox"].form-check-input)').length <= 0;
});
if (badCheckboxes.length) {
reporter('Incorrect markup used with the `.checkbox` class. The correct markup structure is `.checkbox>label>input[type="checkbox"]`', badCheckboxes);
reporter('Incorrect markup used with the `.checkbox` class. The correct markup structure is `.checkbox>>label.form-check-label>input[type="checkbox"].form-check-input`', badCheckboxes);
}
});
addLinter('E018', function lintBlockRadios($, reporter) {
var badRadios = $('.radio').filter(function (i, div) {
return $(div).filter(':has(>label>input[type="radio"])').length <= 0;
return $(div).filter(':has(>label.form-check-label>input[type="radio"].form-check-input)').length <= 0;
});
if (badRadios.length) {
reporter('Incorrect markup used with the `.radio` class. The correct markup structure is `.radio>label>input[type="radio"]`', badRadios);
}
});
addLinter('E019', function lintInlineCheckboxes($, reporter) {
var wrongElems = $('.checkbox-inline:not(label)');
if (wrongElems.length) {
reporter('`.checkbox-inline` should only be used on `<label>` elements', wrongElems);
}
var badStructures = $('.checkbox-inline').filter(function (i, label) {
return $(label).children('input[type="checkbox"]').length <= 0;
});
if (badStructures.length) {
reporter('Incorrect markup used with the `.checkbox-inline` class. The correct markup structure is `label.checkbox-inline>input[type="checkbox"]`', badStructures);
}
});
addLinter('E020', function lintInlineRadios($, reporter) {
var wrongElems = $('.radio-inline:not(label)');
if (wrongElems.length) {
reporter('`.radio-inline` should only be used on `<label>` elements', wrongElems);
}
var badStructures = $('.radio-inline').filter(function (i, label) {
return $(label).children('input[type="radio"]').length <= 0;
});
if (badStructures.length) {
reporter('Incorrect markup used with the `.radio-inline` class. The correct markup structure is `label.radio-inline>input[type="radio"]`', badStructures);
reporter('Incorrect markup used with the `.radio` class. The correct markup structure is `.label.form-check-label>input[type="radio"].form-check-input`', badRadios);
}
});
addLinter('E021', function lintButtonsCheckedActive($, reporter) {
Expand Down

0 comments on commit 5467274

Please sign in to comment.