4.0.0 • Published 1 year ago

@pangolinjs/stylelint-config v4.0.0

Weekly downloads
200
License
Hippocratic-3.0
Repository
github
Last release
1 year ago

Pangolin.js stylelint config

Shareable stylelint config for Pangolin.js based on stylelint-config-sass-guidelines.

The class name pattern follows the Suit CSS naming convention.

Installation

Install the configuration and all peer dependencies with one command:

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

Usage

Create a config

Create a stylelint configuration either as a JSON or a JavaScript file:

.stylelintrc.json

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

stylelint.config.js

module.exports = {
  extends: [
    '@pangolinjs/stylelint-config'
  ]
}

Modifying config and rules

Overwrite rules from the default config:

JSON configuration file

{
  "extends": [
    "@pangolinjs/stylelint-config"
  ],
  "rules": {
    "number-leading-zero": false
  }
}

JavaScript configuration file

module.exports = {
  extends: [
    '@pangolinjs/stylelint-config'
  ],
  rules: {
    'number-leading-zero': false
  }
}

stylelint has an extensive list of rules. Additional rules are provided by the following plugins:

4.0.0

1 year ago

3.0.1

2 years ago

3.0.0

3 years ago

2.0.6

3 years ago

2.0.5

3 years ago

2.0.4

3 years ago

2.0.3

4 years ago

2.0.2

4 years ago

2.0.1

4 years ago

2.0.0

4 years ago

1.8.1

4 years ago

1.8.0

4 years ago

1.7.1

4 years ago

1.7.0

5 years ago

1.6.0

5 years ago