6.1.2 • Published 3 years ago

@lego/stylelint-config v6.1.2

Weekly downloads
9
License
MIT
Repository
github
Last release
3 years ago

@lego/stylelint-config

Prerequisites

  • Don't use @lego/stylelint-config as a globally installed module

Installation

  1. Install this config package:
$ npm install --save-dev @lego/stylelint-config

Usage

Full Configurations

This package includes the following complete and ready to use configurations:

  • @lego/stylelint-config - Base config
  • @lego/stylelint-config/src/configurations/css - Base config + css specific rules
  • @lego/stylelint-config/src/configurations/scss - Base config + scss specific rules

add any above configuration in your stylelint.config.js file

module.exports = {
  extends: '@lego/stylelint-config/src/configurations/scss.js',
  rules: {
    // your overrides or custom rules here
  },
};

or if you prefer the json formatted .stylelintrc file:

{
  "extends": "@lego/stylelint-config/src/configurations/scss.js",
  "rules": {
    // your overrides or custom rules here
  }
}

NOTE: Avoid extending multiple complete configs as it can cause unexpected results, if you need to do this you should consider a piecemeal config as explained below.

Piecemeal Configurations

Stylelint configuration is broken apart in the ./src/rules folder, containing Stylelint's rules and rules for specific Stylelint plugins.

f.ex: the full set of Stylelint rules (./src/rules/eslint) are broken into categories that mirror Stylelint's documentation.

|-- src
|   |-- configurations
|   |   |-- base.js
|   |   |-- css.js
|   |   |-- scss.js
|   |-- rules
|   |   |-- stylelint-declaration-block-no-ignored-properties.js
|   |   |-- stylelint-no-unsupported-browser-features.js
|   |   |-- stylelint-order.js
|   |   |-- stylelint-scss.js
|   |   |-- stylelint
|   |       |-- limit-language-features.js
|   |       |-- possible-errors.js
|   |       |-- stylistic-issues.js

Limitations

Due to an issue with Stylelint, config extension cannot be called from a globally installed (npm install -g stylelint) stylelint.

Included Plugins

stylelint-declaration-block-no-ignored-properties

Disallow property values that are ignored due to another property value in the same rule.

stylelint-no-unsupported-browser-features

disallow features that aren't supported by your target browser audience

stylelint-order

A plugin pack of order related linting rules for stylelint. Every rule support autofixing (stylelint --fix).

6.1.2

3 years ago

3.0.0

4 years ago

2.0.0

4 years ago

1.10.1

4 years ago

1.10.1-alpha.0

4 years ago

1.10.0

4 years ago

1.9.1

4 years ago

1.9.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

4 years ago

1.6.1

4 years ago

1.6.0

4 years ago

1.4.0

5 years ago

1.3.8

5 years ago

1.3.7

5 years ago

1.3.6

5 years ago

1.3.5

5 years ago

1.3.4

5 years ago

1.2.0

5 years ago

1.1.1

5 years ago

1.1.1-alpha.6

5 years ago

1.1.1-alpha.1

5 years ago

1.1.1-alpha.0

5 years ago

1.0.10

5 years ago

1.0.8

5 years ago

1.0.7

5 years ago

1.0.6

5 years ago

1.0.5

5 years ago

1.0.4

5 years ago

1.0.3

5 years ago

1.1.0

5 years ago

1.0.2

5 years ago

1.0.1

5 years ago