Skip to content

alfa-laboratory/stylelint-core-vars

Repository files navigation

stylelint-core-vars

NPM Version

Stylelint плагин, проверяющий использование дизайн-токенов

Установка

yarn add --dev stylelint @alfalab/stylelint-core-vars

или

npm install --save-dev stylelint @alfalab/stylelint-core-vars

Использование

Добавьте в свой stylelint конфиг:

{
  "plugins": [
    "@alfalab/stylelint-core-vars"
  ],
  "rules": {
      "stylelint-core-vars/use-vars": true,
      "stylelint-core-vars/use-mixins": true,
      "stylelint-core-vars/use-one-of-vars": [
          true,
          {
              "severity": "warning"
          }
      ],
      "stylelint-core-vars/use-one-of-mixins": [
          true,
          {
              "severity": "warning"
          }
      ],
      "stylelint-core-vars/do-not-use-dark-colors": [
          true,
          {
              "severity": "warning"
          }
      ]
  },
}

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published