10stars - Stylelint Shareable Config

Usage no npm install needed!

<script type="module">
  import 10starsStylelintConfig from 'https://cdn.skypack.dev/@10stars/stylelint-config';




npm i -g \
  stylelint \

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/@10stars/stylelint-config", // use only this
  rules: {
    "block-no-empty": null,