fis3-lint-stylelint_d
v0.1.6
Published
a css linter plugin of fis3 based on stylelint
Downloads
1
Readme
fis3-lint-stylelint_d
a css/less/scss/sugarss linter plugin of fis3 based on stylelint, use latest version.
usage
$ npm i -g fis3-lint-stylelint_d
// fis-conf.js
var stylelintConf = {};
fis.match('*.{css,scss,less,sss}}', {
lint: fis.plugin('stylelint_d', stylelintConf)
});
options
var stylelintConf = {
fix: , // ❗!!! important !!!❗
// this is not part of stylelint
// default:false,
// be careful, this might change your source code
// if this set to true, linter will try to fix code using `stylefmt`
// and also notice `stylefmt` is not currently full compatible with `stylelint`
// eg: `value-list-comma-newline-after` it not supported by `stylefmt`
// `stylefmt` will combine value list in to one line,
// and `stylelint` will report a error,
// also this might againt the `max-line-length` rule
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/]
links
fis3: [http://fis.baidu.com/]
stylelint: [http://stylelint.io/]
stylefmt: [https://github.com/morishitter/stylefmt]