Skip to content
This repository has been archived by the owner on Nov 10, 2023. It is now read-only.

alex-lit/config-stylelint

Repository files navigation

StyleLint Configuration

Installation

npm i @alexlit/config-stylelint -D

Connection

// .stylelintrc.js
module.exports = {
  extends: [
    '@alexlit/config-stylelint',

    /* optional */
    '@alexlit/config-stylelint/plugins/optional/no-indistinguishable-colors',
    '@alexlit/config-stylelint/plugins/optional/use-logical-spec',
  ],

  ignoreFiles: [
    ...require('@alexlit/config-stylelint/.stylelintrc').ignoreFiles,
  ],
};

Development

  • Check rules

    npx stylelint-find-new-rules
  • Check rules that are in conflict with Prettier

    npx stylelint-config-prettier-check