npm.io
3.0.9 • Published 6 months ago

stylelint-config-ray

Licence
MIT
Version
3.0.9
Deps
4
Size
9 kB
Vulns
0
Weekly
0

stylelint-config-ray

description

author

  ilex.h

Installation

$ npm install -g stylelint-config-ray

$ npm install --save-dev stylelint-config-ray

Usage

  • .stylelintrc.json
  • simple use
{
  "extends": "stylelint-config-ray"
}
  • with custom ruls
{
  "extends": "stylelint-config-ray",
  "rules": {

  }
}
  • .stylelintrc.js
  • simple use
module.exports = require('stylelint-config-ray');
// or
module.exports = {
  extends: 'stylelint-config-ray'
}
  • with custom ruls
module.exports = {
  extends: 'stylelint-config-ray',
  plugins: [
    'stylelint-order',
    'stylelint-scss'
  ],
  rules: {
    // ... others
  }
}

License

MIT

注意,3.0.1 之后的版本,默认加入 customSyntax: 'postcss-scss' 需要自行安装 postcss-scss 模块。

Keywords