This package provides u+i's base CSS/SCSS stylelint as an extensible shared config.
Install via npm:
Install the correct versions of each package, which are listed by the command:
npm info "@uandi/stylelint-config@latest" peerDependencies
Linux/OSX users can run
(
export PKG="@uandi/stylelint-config";
npm info "$PKG@latest" peerDependencies --json | command sed 's/[\{\},]//g ; s/: /@/g' | xargs npm install --save-dev "$PKG@latest"
)
Which produces and runs a command like:
npm install --save dev @uandi/stylelint-config stylelint@^#.#.# stylelint-declaration-block-no-ignored-properties@^#.#.# stylelint-scss@^#.#.#
Windows users can either install all the peer dependencies manually, or use the install-peerdeps cli tool.
npm install -g install-peerdeps
install-peerdeps --dev @uandi/stylelint-config
Our configuration contains all of our StyleLint rules, including SCSS. It requires stylelint
, stylelint-declaraion-block-no-ignored-properties
and stylelint-scss
.
Add "extends": "@uandi/stylelint-config"
to your .stylelintrc