@dre1080/stylelint-config

Sharable stylelint config

Usage no npm install needed!

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

README

stylelint-config

npm (scoped)

A sharable stylelint config object. Inspired by stylelint-config-primer.

Install

Install stylelint, prettier and @dre1080/stylelint-config:

With Yarn

$ yarn add --dev stylelint prettier @dre1080/stylelint-config

With npm

$ npm install stylelint prettier @dre1080/stylelint-config --save-dev

Usage

Within your stylelint config object You can extend this configuration. This will serve as a base for your config, then you can make overrides in your own config object:

{
  "extends": "@dre1080/stylelint-config"
}

Add a prettier config in package.json:

"prettier": "@dre1080/prettier-config"