@Gr945

Как настроить stylelint?

У меня проект React с TypeScript. Пытаюсь настроить stylelint для scss файлов. Не работает плагин для stylelint > 'stylelint-no-unused-selectors'.
Подскажите пожалуйста, как правильно настроить?

Вот моя конфигурация:
module.exports = {
  extends: [
    "stylelint-config-standard",
    "stylelint-config-css-modules",
    "stylelint-config-prettier-scss",
    "stylelint-no-unused-selectors",
  ],
  plugins: ["stylelint-no-unused-selectors", "stylelint-scss"],
  rules: {
    "plugin/no-unused-selectors": true,
    "scale-unlimited/declaration-strict-value": "color",
    "plugin/declaration-use-variable": true,
    "indentation": 2,
  }
}
  • Вопрос задан
  • 172 просмотра
Пригласить эксперта
Ваш ответ на вопрос

Войдите, чтобы написать ответ

Войти через центр авторизации
Похожие вопросы