1.0.0 • Published 4 years ago

iamnewton-stylelint-config v1.0.0

Weekly downloads
-
License
MIT
Repository
github
Last release
4 years ago

Stylelint Config

A Stylelint configuration for all (S)CSS development.

Installation

npm install --save-dev stylelint-config-iamnewton

Usage

In your project package.json add the following:

{
  "stylelint": {
    "extends": "stylelint-config-iamnewton"
  }
}

Rules

  • 1 tab character (4 spaces)
  • Semicolons
  • No BEM style selectors
  • 1TBS brace style
  • No HEX formatting for colors
  • Use variables for all colors, z-indices, and font-sizes
  • Enforces a specific property order in declarations

Versioning

All modules, libraries, or frameworks use SemVer for its versioning providing us an opt-in approach to releases. This means we add a version number according to the spec, as you see below. So rather than force developers to consume the latest and greatest, they can choose which version to consume and test any newer ones before upgrading. Please the read the spec as it goes into further detail.

Given a version number MAJOR.MINOR.PATCH, increment the:

MAJOR version when you make incompatible API changes. MINOR version when you add functionality in a backward-compatible manner. PATCH version when you make backward-compatible bug fixes.

Additional labels for pre-release and build metadata are available as extensions to the MAJOR.MINOR.PATCH format.