@alexandrov/stylelint-config

1.4.0 • Public • Published

@alexandrov/stylelint-config

Install

npm i -g \
  stylelint \
  stylelint-scss \
  stylelint-selector-bem-pattern \
  @alexandrov/stylelint-config

Set up your global stylelint rules

Copy user-config/.stylelintrc.js to ~/.stylelintrc.js

cp user-config/.stylelintrc.js ~/.stylelintrc.js

Extending the config

Simply add a "rules" key to your config, then add your overrides and additions there.

For example, to turn off the block-no-empty rule:

module.exports = {
  extends: "/usr/local/lib/node_modules/@alexandrov/stylelint-config", // use only this
  rules: {
    "block-no-empty": null,
  },
}

Package Sidebar

Install

npm i @alexandrov/stylelint-config

Weekly Downloads

25

Version

1.4.0

License

MIT

Unpacked Size

13.4 kB

Total Files

5

Last publish

Collaborators

  • o_alexandrov