Skip to content
This repository has been archived by the owner on Feb 15, 2021. It is now read-only.

🦀 Custom Stylelint rules. If you can lint it – lint it!

License

Notifications You must be signed in to change notification settings

productboardlabs/stylelint-pb

Repository files navigation

⛔️ DEPRECATED

This repository is no longer supported. Its content was moved into frontend-pb mono repository under the @productboard/stylelint-plugin-custom-plugin project.

Stylelint-PB

All Contributors codecov

Set (TODO) of our custom made rules for Stylelint. 🚀

Story

...🍻

Install

yarn add @productboard/stylelint-pb

Rules

smart-color-replacement

It's smart! Configuration needs to be provided in format like bellow. 👇

{
  "@snowWhite": "#f4f5e2"
}

Example configuration. 👇

{
    rules: {
        "@productboard/smart-color-replacement": [
            {
                "@snowWhite": "#f4f5e2"
            }
        ]
    }
}

You can also run this rule in strict mode which means that there is no other color than variable allowed!

{
  "rules": {
    "@productboard/smart-color-replacement": [
      {
        "@white": "#ffffff"
      },
      {
        "strictMode": true
      }
    ]
  }
}

Contributors

Thanks goes to these wonderful people (emoji key):

Jakub Beneš
Jakub Beneš

💻
Tom Dohnal
Tom Dohnal

💻
Pavel Kepka
Pavel Kepka

💻
simon-hrabec
simon-hrabec

💻
Evgeny Karpov
Evgeny Karpov

💻

This project follows the all-contributors specification. Contributions of any kind welcome!

About

🦀 Custom Stylelint rules. If you can lint it – lint it!

Resources

License

Stars

Watchers

Forks

Packages

No packages published