1.0.0 • Published 4 years ago

stylelint-config-pigify v1.0.0

Weekly downloads
31
License
ISC
Repository
github
Last release
4 years ago

Pigify stylelint config

How to install?

npm i -D stylelint-config-pigify
or
yarn add -D stylelint-config-pigify

What is it about?

This repo contains our stylelint config file. It should be uses across all new react projects that use css modules to maintain consistent and speed up stylelint configuration. It uses stylelint-config-standard.

What is happening?

Stylelint configuration with all needed rules is created and placed in the root of your project(stylelint.config.js).

What is next?

  1. You have to include stylelint dependencies to your project.
npm install --save-dev stylelint stylelint-config-standard stylelint-declaration-block-no-ignored-properties stylelint-declaration-use-variable stylelint-order stylelint-selector-no-empty
  1. You have to add npm task to start linting.

Example:

"stylelint": "stylelint ./'src/theme/**/*.scss' --fix"
  1. Use it like this:
npm run stylelint
or
yarn stylelint