stylelint-config-itgalaxy

58.0.0 • Public • Published

stylelint-config-itgalaxy

NPM version Travis Build Status devDependencies Status peerDependencies Status

itgalaxy org's shareable config for stylelint (css and scss).

For consistent css and scss code across itgalaxy's repositories.

Installation

npm install stylelint-config-itgalaxy

Usage

If you've installed stylelint-config-itgalaxy locally within your project, just set your stylelint config to:

For css use:

{
  "extends": "stylelint-config-itgalaxy/css"
}

For scss use:

{
  "extends": "stylelint-config-itgalaxy/scss"
}

If you've globally installed stylelint-config-itgalaxy using the -g flag, then you'll need to use the absolute path to stylelint-config-itgalaxy in your config e.g.

{
  "extends": "/absolute/path/to/stylelint-config-itgalaxy"
}

Extending the config

Simply add a "rules" key to your config, then add your overrides and additions there.

For example, to change the indentation to tabs, turn off the number-leading-zero rule, change the property-no-unknown rule to use its ignoreAtRules option and add the unit-whitelist rule:

{
  "extends": "stylelint-config-itgalaxy",
  "rules": {
    "indentation": "tab",
    "number-leading-zero": null,
    "property-no-unknown": [
      true,
      {
        "ignoreProperties": ["composes"]
      }
    ],
    "unit-whitelist": ["em", "rem", "s"]
  }
}

Changelog

License

Dependencies (0)

    Dev Dependencies (29)

    Package Sidebar

    Install

    npm i stylelint-config-itgalaxy

    Weekly Downloads

    44

    Version

    58.0.0

    License

    MIT

    Unpacked Size

    44.7 kB

    Total Files

    17

    Last publish

    Collaborators

    • cap-bernardito
    • evilebottnawi
    • itgalaxy-owner