@sb1/stylelint-config-ffe

2.0.0 • Public • Published

@sb1/stylelint-config-ffe

A (stylelint)[https://stylelint.io/] extension with rules for working with FFE components.

Usage

Add stylelint and this package to your project:

npm install --save-dev stylelint @sb1/stylelint-config-ffe

Configure your stylelint configuration file to extend this package:

module.export = {
    extends: ['@sb1/stylelint-config-ffe'],
};

References

@sb1/ffe-no-deprecated-color-vars

Disallow deprecated less color variables.

module.export = {
    extends: ['@sb1/stylelint-config-ffe']
    overrides: [
        {
            files: ['**/*.less'],
            customSyntax: 'postcss-less',
            rules: {
                '@sb1/ffe-no-deprecated-color-vars': true
            }
        }
    ]
}

Options

true

The following code is considered a problem:

a {
    color: @ffe-blue-deep-sky;
    /** ffe-blue-deep-sky is deprecated */
}

Readme

Keywords

none

Package Sidebar

Install

npm i @sb1/stylelint-config-ffe

Weekly Downloads

0

Version

2.0.0

License

MIT

Unpacked Size

2.72 kB

Total Files

4

Last publish

Collaborators

  • antidecaf
  • sb1-designsystem
  • kwltrs
  • erlingk