0.1.1 • Published 3 years ago

@dnepro/stylelint-config v0.1.1

Weekly downloads
-
License
MIT
Repository
github
Last release
3 years ago

@dnepro/stylelint-config

NPM npm (scoped) npm peer dependency version (scoped)

This package includes the shareable Stylelint configuration used by @dnepro.

Usage

This project provides two configuration versions, a "basic" and a "prettier", if you're project uses Prettier you should use the "prettier"-variant.

Basic

Install this configuration:

npm i -D @dnepro/stylelint-config 
# or
yarn add -D @dnepro/stylelint-config stylelint@^13.2.0 stylelint-config-standard@^21.0.0

if necessary (this maybe already happens automatically), please also install the peerDependencies:

npm i -D stylelint@^13.2.0 stylelint-config-standard@^21.0.0
# or respectively
yarn add -D stylelint@^13.2.0 stylelint-config-standard@^21.0.0

Add this to your .stylelintrc.json:

{
  "extends": "@dnepro/stylelint-config"
}

Prettier

Install this configuration and it's peerDependencies:

npm i -D @dnepro/stylelint-config
# or respectively
yarn add -D @dnepro/stylelint-config

if necessary (this maybe already happens automatically), please also install the peerDependencies:

npm i -D stylelint@^13.2.0 stylelint-config-standard@^21.0.0 stylelint-config-prettier@^8.0.1
# or respectively
yarn add -D stylelint@^13.2.0 stylelint-config-standard@^21.0.0 stylelint-config-prettier@^8.0.1

Add this to your .stylelintrc.json:

{
  "extends": "@dnepro/stylelint-config/prettier"
}