@mediacurrent/stylelint-config

Adds stylelint configuration for consistent CSS rules.

Usage no npm install needed!

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

README

@mediacurrent/stylelint-config

Adds stylelint configuration for consistent CSS rules.

Install

npm install --save-dev @mediacurrent/stylelint-config

Extend

In local stylelintrc.yml

// Get base from node_modules.
extends:
  - "@mediacurrent/stylelint-config"
// Overrides.
rules: 
  indentation: "tab"

Pre-commit hook

For formatting using these rules to take place automatically on commit, follow the steps outlined here in Prettier setup.