stylelint-config-cumul8

2.1.57 • Public • Published

stylelint-config-cumul8

NPM version

Cumul8 shareable config for stylelint.

Configuration rules to ensure your CSS is compliant with Cumul8's CSS Coding Standards

Installation

yarn add -D stylelint-config-cumul8

Usage

NOTE: stylelint-config-cumul8 comes with its own stylelint-cumul8 bin tool so that you don't need to install stylelint as a peerDependency. All the necessary dependencies are bundled together for you.

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

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

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

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

Extending the config

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

For example, to change the indentation to four spaces and turn off the number-leading-zero rule:

{
  "extends": "stylelint-config-cumul8",
  "rules": {
    "indentation": 4,
    "number-leading-zero": null
  }
}

License

Package Sidebar

Install

npm i stylelint-config-cumul8

Weekly Downloads

0

Version

2.1.57

License

MIT

Unpacked Size

12 kB

Total Files

5

Last publish

Collaborators

  • af
  • globexdesigns