1.0.1 • Published 1 year ago

stylelint-config-utility v1.0.1

Weekly downloads
-
License
MIT
Repository
-
Last release
1 year ago

stylelint-config-utility

This is a utility config that provides a custom .stylelintrc config.

Getting started

Installation:

npm i -D stylelint-config-utility@latest

Run the following command and install packages provided as dev dependencies:

npm info "stylelint-config-utility@latest" peerDependencies

Usage

stylelint-config-utility

The exported config contains stylelint rules, which can be extended by adding additional rules.

Add "extends": "stylelint-config-utility" to your .stylelintrc.json.

{
  "extends": ["stylelint-config-utility"],
}

If you want, you can extend the rules, by adding additional rules, for example:

{
  "extends": ["stylelint-config-utility"],
  "rules": {
    "selector-no-vendor-prefix": true,
  },
}

You can check that the package lints using:

npx stylelint **/*.scss

or with the fix flag:

npx stylelint **/*.scss --fix

More information

See stylelint-config-utility.

See Github.