@scultura/stylelint-config

1.2.1 • Public • Published

scultura-stylelint-config

npm version dependencies license

Stylelint configuration used by Scultura CSS framework.

What is Stylelint

Stylelint is a mighty, modern linter that helps you avoid errors and enforce conventions in your styles.

Installation

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

Usage

{
  "extends": "@scultura/stylelint-config/css"
}

Your can override or add your own rules in your Stylelint configuration file.

{
  "extends": "@scultura/stylelint-config/css",
  "rules": {
    // your own rules here
  }
}

Rules

We extend rules from stylelint-config-standard.

That means all rules for Possible errors are activated and enforce a minimal set of stylistic conventions seen within a handful of CSS styleguides.

For our own's rules, we include:

  • banning vendor prefix (Added at compile time by Autoprefixer)
  • limitation for selector number to keep performance and reusability
  • banning !important property
  • all letters in lowercase
  • numeric value for font weight

Your can see all our rules here.

And read about all Stylelint rules.

License

This project is licensed under the MIT License - see the LICENSE file for details

Package Sidebar

Install

npm i @scultura/stylelint-config

Weekly Downloads

0

Version

1.2.1

License

MIT

Unpacked Size

9.61 kB

Total Files

4

Last publish

Collaborators

  • dmartinjs