@cyansalt/stylelint-config

    1.8.3 • Public • Published

    @cyansalt/stylelint-config

    My Stylelint configuration.

    Installation

    npm install @cyansalt/stylelint-config

    Without Configuration

    // stylelint.config.js
    module.exports {
      // ...
      extends: [
        '@cyansalt/stylelint-config',
      ],
      // ...
    }

    The ruleset will check your project dependencies and enable available configurations automatically. This eliminates the need for you to know any specific ruleset configuration below.

    Basic Ruleset

    // stylelint.config.js
    module.exports {
      // ...
      extends: [
        '@cyansalt/stylelint-config/base',
      ],
      // ...
    }

    Note: stylelint-config-recommended is not needed since base has extended the rule set by default.

    SCSS

    Need to install stylelint-scss manually

    // stylelint.config.js
    module.exports {
      // ...
      extends: [
        '@cyansalt/stylelint-config/base',
        '@cyansalt/stylelint-config/scss',
      ],
      // ...
    }

    Plugins

    We have provided a number of plugin configurations as our recommendation.

    Aurora

    Various Stylelint rules in one plugin.

    Need to install stylelint-plugin-aurora manually

    // stylelint.config.js
    module.exports {
      // ...
      extends: [
        '@cyansalt/stylelint-config/base',
        '@cyansalt/stylelint-config/aurora/base',
        // for SCSS
        '@cyansalt/stylelint-config/aurora/scss',
      ],
    }

    Order

    Autofix the property order of stylesheets.

    Need to install stylelint-order manually

    // stylelint.config.js
    module.exports {
      // ...
      extends: [
        '@cyansalt/stylelint-config/order',
      ],
    }

    CLI

    You can update current Stylelint packages with npx:

    npx @cyansalt/stylelint-config --update
    • You can pass -y to skip the question and update packages immediately.
    • Or install/update all recommended packages with -a argument.

    Install

    npm i @cyansalt/stylelint-config

    DownloadsWeekly Downloads

    49

    Version

    1.8.3

    License

    ISC

    Unpacked Size

    28.9 kB

    Total Files

    18

    Last publish

    Collaborators

    • cyansalt