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

Latest commit

 

History

History
executable file
·
40 lines (29 loc) · 645 Bytes

README.md

File metadata and controls

executable file
·
40 lines (29 loc) · 645 Bytes

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