Skip to content

GamesDoneQuick/stylelint-config

Repository files navigation

GDQ's stylelint-config npm Build Status

Our re-usable config for the Stylelint CSS linter.

Usage

  1. Install this config as a devDependency:

    npm i -D @gamesdonequick/stylelint-config
  2. Follow the instructions here to use or extend our config: https://stylelint.io/user-guide/configuration#extends

  3. This package actually includes multiple configs. One base config, and one that has some rules specific to PostCSS. You can pick and choose what parts you wish to use. To use both, your config might look like this:

    module.exports = {
      extends: ['@gamesdonequick/stylelint-config', './node_modules/@gamesdonequick/stylelint-config/postcss'],
    };