From 4c3069955f6347f56a3ec6642089e7f0569fea08 Mon Sep 17 00:00:00 2001 From: Jeff Sutherland Date: Sun, 6 Sep 2020 12:47:42 -0700 Subject: [PATCH] Remove csslint csslint is dead and doesn't support newer CSS features See https://github.com/CSSLint/csslint/issues/720 This causes false positives that blow up Bracey Could probably be replaced with stylelint --- server/cssfile.js | 14 -------------- server/package.json | 1 - 2 files changed, 15 deletions(-) diff --git a/server/cssfile.js b/server/cssfile.js index bc4ca30..6aeb517 100644 --- a/server/cssfile.js +++ b/server/cssfile.js @@ -1,4 +1,3 @@ -var csslint = require('csslint').CSSLint; var cssparser = require('postcss'); function CssFile(source, path, callback){ @@ -35,19 +34,6 @@ CssFile.prototype.selectorFromPosition = function(line, column){ }; CssFile.prototype.setContent = function(source, callback){ - var messages = csslint.verify(source).messages; - var errors = []; - messages.forEach(function(msg){ - if(msg.type == 'error'){ - errors.push(msg); - } - }); - - if(errors.length > 0 && callback){ - callback(errors); - return; - } - var changed = (this.source != undefined && this.source != source); this.source = source; diff --git a/server/package.json b/server/package.json index a6cfc73..00bda94 100644 --- a/server/package.json +++ b/server/package.json @@ -4,7 +4,6 @@ "description": "", "main": "bracey.js", "dependencies": { - "csslint": "^1.0.5", "domhandler": "^2.3.0", "domutils": "^1.5.1", "htmlhint": "^0.11.0",