stylelint-config-ray

the common stylelint config for ray team

Usage no npm install needed!

<script type="module">
  import stylelintConfigRay from 'https://cdn.skypack.dev/stylelint-config-ray';
</script>

README

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 ๆจกๅ—ใ€‚