Skip to content

Brave's shareable Stylelint config for use across projects.

Notifications You must be signed in to change notification settings

brave-agency/stylelint-config

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

48 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Node.js Package

stylelint-config

Brave's shareable Stylelint config for use across projects.

Installation

Install stylelint and @brave-agency/stylelint-config:

With Yarn

yarn add --dev stylelint @brave-agency/stylelint-config

With npm

npm install stylelint @brave-agency/stylelint-config --save-dev

Usage

Brave's stylelint rules come bundled in @brave-agency/stylelint-config. To enable these rules, add a stylelint property in your package.json. See the stylelint configuration docs for more details.

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

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

"scripts": {
   "lint:styles": "stylelint \"src/styles/**/*.scss\" --fix --formatter verbose",
}

Run it:

With Yarn

yarn run lint:styles

With npm

npm run lint:styles