stylelint4b
v15.11.0
Published
stylelint which works in browsers.
Downloads
7,033
Readme
stylelint4b
stylelint which works in browsers.
This idea and implementation is based on eslint4b.
Documentation
See documentation.
Installation
npm install stylelint4b
Usage
const stylelint4b = require("stylelint4b")
const config = {
extends: "stylelint-config-standard",
}
const result = await stylelint4b
.lint({
code: `
.cl {
color: red
}
`,
codeFilename: "a.css",
config,
fix
})
const warnings = resultObject.results[0].warnings
const output = resultObject.output