From 107e3e00141da20663bac2164975d33140fa2f46 Mon Sep 17 00:00:00 2001 From: bogger33 Date: Tue, 2 Mar 2021 20:35:36 +0100 Subject: [PATCH] Remove qualified-headings rule --- lib/ace/mode/css/csslint.js | 39 ------------------------------------- 1 file changed, 39 deletions(-) diff --git a/lib/ace/mode/css/csslint.js b/lib/ace/mode/css/csslint.js index 76196b541ae..b08e73db465 100644 --- a/lib/ace/mode/css/csslint.js +++ b/lib/ace/mode/css/csslint.js @@ -8263,45 +8263,6 @@ CSSLint.addRule({ }); -/* - * Rule: Headings (h1-h6) should not be qualified (namespaced). - */ - -CSSLint.addRule({ - - //rule information - id: "qualified-headings", - name: "Disallow qualified headings", - desc: "Headings should not be qualified (namespaced).", - browsers: "All", - - //initialization - init: function(parser, reporter){ - var rule = this; - - parser.addListener("startrule", function(event){ - var selectors = event.selectors, - selector, - part, - i, j; - - for (i=0; i < selectors.length; i++){ - selector = selectors[i]; - - for (j=0; j < selector.parts.length; j++){ - part = selector.parts[j]; - if (part.type === parser.SELECTOR_PART_TYPE){ - if (part.elementName && /h[1-6]/.test(part.elementName.toString()) && j > 0){ - reporter.report("Heading (" + part.elementName + ") should not be qualified.", part.line, part.col, rule); - } - } - } - } - }); - } - -}); - /* * Rule: Selectors that look like regular expressions are slow and should be avoided. */