Our re-usable config for the Stylelint CSS linter.
-
Install this config as a devDependency:
npm i -D @gamesdonequick/stylelint-config
-
Follow the instructions here to use or extend our config: https://stylelint.io/user-guide/configuration#extends
-
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'], };