@newhighsco/stylelint-config

3.1.80 • Public • Published

stylelint-config NPM version

New High Score shareable config for stylelint

Installation

Install stylelint and @newhighsco/stylelint-config:

yarn add -D stylelint @newhighsco/stylelint-config

Prettier

@newhighsco/stylelint-config should be used in conjunction with Prettier. See the @newhighsco/prettier-config installation guide for more details.

Usage

New High Score stylelint rules come bundled in @newhighsco/stylelint-config. To enable these rules, add a stylelint property in your package.json. See the stylelint configuration docs for more details.

"stylelint": {
  "extends": ["@newhighsco/stylelint-config"]
}

Now you can run stylelint by adding the following scripts to your package.json. See the stylelint CLI docs for more details.

"scripts": {
  "lint:css": "stylelint --cache --ignore-path .gitignore '**/*.?(s)css'",
  "format:css": "yarn lint:css --fix"
}

Lint it:

yarn lint:css

Format it:

yarn format:css

Readme

Keywords

none

Package Sidebar

Install

npm i @newhighsco/stylelint-config

Weekly Downloads

132

Version

3.1.80

License

ISC

Unpacked Size

3.24 kB

Total Files

3

Last publish

Collaborators

  • benedfit
  • newhighsco-bot