fis3-lint-stylelint
a css linter plugin of fis3 based on stylelint.
install
npm install --global fis3-lint-stylelint
usage
// fis-conf.js
var stylelintConf = {}
fis.match('*.{css,scss,less,sss}}', {
lint: fis.plugin('stylelint', stylelintConf),
})
options
const stylelintConf = {
fix: true, // ❗!!! important !!!❗
// default: true,
// be careful, this might change your source code
// this will trigger `CLIEngine.outputFixes` automatically
code: // useless, will be unset
codeFilename: // useless, will be unset
config:
configBasedir:
configFile:
configOverrides:
files: // useless, will be overwrite
formatter: // useless, will be overwrite
ignorePath:
syntax: // if not set, will fix by file ext
// rules: .scss => scss, .less => less, .sss =>sugarss
};
options: http://stylelint.io/user-guide/node-api/#options
rules: http://stylelint.io/user-guide/rules/
default options
{
"fix": true
}
NOTICE: this might change in future
links
-
fis3: http://fis.baidu.com/
-
stylelint: http://stylelint.io/
license
MIT © fisker Cheung