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.
* W002 (X-UA-Compatible)
* W010 (.pull-left or .pull-right in .media)
* W015 (Bootstrap 4)
* E002 (Bootstrap v2 grid)
* E030 (.glyphicon-* without .glyphicon)
* E031 (.glyphicon on element with content or
children)
* E038 (.media-left/.media-right outside of
.media)
reporter('`<head>` is missing X-UA-Compatible `<meta>` tag that disables old IE compatibility modes');
348
-
}
349
-
});
350
-
*/
351
-
/*
352
341
addLinter('W003', function lintViewport($, reporter) {
353
342
var meta = $('head>meta[name="viewport"][content]');
354
343
if (!meta.length) {
@@ -496,14 +485,6 @@ var LocationIndex = _location.LocationIndex;
496
485
});
497
486
});
498
487
/*
499
-
addLinter('W010', function lintMediaPulls($, reporter) {
500
-
var mediaPulls = $('.media>.pull-left, .media>.pull-right');
501
-
if (mediaPulls.length) {
502
-
reporter('Using `.pull-left` or `.pull-right` as part of the media object component is deprecated as of Bootstrap v3.3.0. Use `.media-left` or `.media-right` instead.');
503
-
}
504
-
});
505
-
*/
506
-
/*
507
488
addLinter('W012', function lintNavbarContainers($, reporter) {
508
489
var navBars = $('.navbar');
509
490
var containers = [
@@ -564,36 +545,6 @@ var LocationIndex = _location.LocationIndex;
564
545
});
565
546
*/
566
547
/*
567
-
addLinter('W015', function lintNewBootstrap($, reporter) {
568
-
var FUTURE_VERSION_ERROR = 'Detected what appears to be Bootstrap v4 or later. This version of Bootlint only supports Bootstrap v3.';
569
-
var theWindow = getBrowserWindowObject();
570
-
571
-
var globaljQuery = theWindow && (theWindow.$ || theWindow.jQuery);
572
-
// @covignore
573
-
if (globaljQuery) {
574
-
var versions = jqueryPluginVersions(globaljQuery);
575
-
if (versions.length) {
576
-
var minVersion = versions[0];
577
-
if (semver.gte(minVersion, BOOTSTRAP_VERSION_4, true)) {
578
-
reporter(FUTURE_VERSION_ERROR);
579
-
return;
580
-
}
581
-
}
582
-
}
583
-
// check for Bootstrap <link>s and <script>s
584
-
var bootstraps = $(BOOTSTRAP_FILES);
585
-
bootstraps.each(function () {
586
-
var version = versionInLinkedElement($, this);
587
-
if (version === null) {
588
-
return;
589
-
}
590
-
if (semver.gte(version, BOOTSTRAP_VERSION_4, true)) {
591
-
reporter(FUTURE_VERSION_ERROR, $(this));
592
-
}
593
-
});
594
-
});
595
-
*/
596
-
/*
597
548
addLinter('W016', function lintDisabledClassOnButton($, reporter) {
598
549
var btnsWithDisabledClass = $('button.btn.disabled, input.btn.disabled');
599
550
if (btnsWithDisabledClass.length) {
@@ -644,19 +595,6 @@ var LocationIndex = _location.LocationIndex;
644
595
};
645
596
})());
646
597
/*
647
-
addLinter('E002', function lintBootstrapv2($, reporter) {
648
-
var columnClasses = [];
649
-
for (var n = 1; n <= 12; n++) {
650
-
columnClasses.push('.span' + n);
651
-
}
652
-
var selector = columnClasses.join(',');
653
-
var spanNs = $(selector);
654
-
if (spanNs.length) {
655
-
reporter('Found one or more uses of outdated Bootstrap v2 `.spanN` grid classes', spanNs);
656
-
}
657
-
});
658
-
*/
659
-
/*
660
598
addLinter('E003', function lintContainers($, reporter) {
661
599
var notAnyColClass = COL_CLASSES.map(function (colClass) {
662
600
return ':not(' + colClass + ')';
@@ -975,24 +913,6 @@ var LocationIndex = _location.LocationIndex;
975
913
});
976
914
});
977
915
/*
978
-
addLinter('E030', function lintSoloGlyphiconClasses($, reporter) {
979
-
var missingGlyphiconClass = $('[class*="glyphicon-"]:not(.glyphicon):not(.glyphicon-class)').filter(function () {
0 commit comments