Skip to content

jonastaedcke/stylelint-config

 
 

Repository files navigation

Stylelint Config

Avenga's stylelint rules and config

Installation

Install stylelint and @avenga/stylelint-config:

npm install --save-dev stylelint @avenga/stylelint-config 

Usage

stylelint expects a configuration object. If your project already has one, just reference @avenga/stylelint-config with extends.

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

If you need to add a stylelint configuration object to your project, there are different approaches. One popular approach is to add a .stylelintrc.js file to the root of your project.

// .stylelintrc.js

module.exports = {
  extends: '@avenga/stylelint-config',
};

It is possible to overwrite rules to meet your project specific needs.

Note: @avenga/stylelint-config already includes the recommended stylelint-config-standard config and the stylelint-scss plugin.

Stylelint Editor Plugins

Packages

No packages published

Languages

  • JavaScript 100.0%