fis3-lint-stylelint

5.1.0 • Public • Published

fis3-lint-stylelint

a css linter plugin of fis3 based on stylelint.

styled with prettier npm npm npm

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

license

MIT © fisker Cheung

Package Sidebar

Install

npm i fis3-lint-stylelint

Weekly Downloads

1

Version

5.1.0

License

MIT

Unpacked Size

72.6 kB

Total Files

4

Last publish

Collaborators

  • fisker