Skip to content

Commit

Permalink
Support "css" syntax option
Browse files Browse the repository at this point in the history
  • Loading branch information
hudochenkov committed Oct 10, 2019
1 parent 1aa3eaf commit ab1931e
Showing 1 changed file with 1 addition and 8 deletions.
9 changes: 1 addition & 8 deletions src/server/lint.js
Original file line number Diff line number Diff line change
Expand Up @@ -9,17 +9,10 @@ module.exports = (req, res, next) => {
return next(new Error("parseConfig"));
}

let syntax = req.body.syntax;

// syntax is for non-standard syntaxes only
if (syntax === "css") {
syntax = undefined;
}

const opts = {
code: req.body.code,
config,
syntax
syntax: req.body.syntax
};

stylelint
Expand Down

0 comments on commit ab1931e

Please sign in to comment.