2.2.0 • Published 9 months ago

@mooore/stylelint-config v2.2.0

Weekly downloads
112
License
MIT
Repository
github
Last release
9 months ago

Mooore stylelint-config

NPM version

A sharable stylelint config object that enforces Mooore Digital css rules.

Installation

npm install @mooore/stylelint-config --save-dev

Usage

If you've installed @mooore/stylelint-config, just set your stylelint config to:

{
  "extends": "@mooore/stylelint-config"
}

Extending

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

{
  "extends": "@mooore/stylelint-config",
  "rules": {
    "rule-empty-line-before": [
        "always-multi-line", {
            "except": ["first-nested"],
            "ignore": ["after-comment"]
        }
    ],
  }
}

Extensions

We offer special rules for the following frameworks;

  • SCSS "@mooore/stylelint-config/scss",
  • Magento (LESS) "@mooore/stylelint-config/luma",
  • Magento (SCSS) "@mooore/stylelint-config/snowdog",
  • Magento (Hyva) "@mooore/stylelint-config/hyva",

Simply add the last part to your extends option, to use the specific rules.

Rules

The Mooore style-config is based on the @fylgja/stylelint-config And most rules are set there.

We only optimized it to match our Magento environments.

To checkout our rules see each config file.

License

MIT © Mooore Digital

2.2.0

9 months ago

2.1.0

1 year ago

2.0.1

1 year ago

2.0.0

1 year ago

1.7.1

2 years ago

1.7.0

2 years ago

1.6.1

3 years ago

1.6.0

3 years ago

1.5.0

3 years ago

1.4.2

4 years ago

1.4.1

4 years ago

1.4.0

4 years ago

1.3.1

4 years ago

1.3.0

4 years ago

1.2.1

4 years ago

1.2.0

4 years ago