Skip to content

Commit

Permalink
Remove csslint
Browse files Browse the repository at this point in the history
csslint is dead and doesn't support newer CSS features
See CSSLint/csslint#720
This causes false positives that blow up Bracey
Could probably be replaced with stylelint
  • Loading branch information
jdsutherland committed Sep 6, 2020
1 parent 2a540f4 commit 4c30699
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 15 deletions.
14 changes: 0 additions & 14 deletions server/cssfile.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
var csslint = require('csslint').CSSLint;
var cssparser = require('postcss');

function CssFile(source, path, callback){
Expand Down Expand Up @@ -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;
Expand Down
1 change: 0 additions & 1 deletion server/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down

0 comments on commit 4c30699

Please sign in to comment.