1.2.2 • Published 1 year ago
@nypost/stylelint-config v1.2.2
NY Post Stylelint Configuration
A set of stylelint configuration rules to ensure the CSS styles are consistent across a project.
Installation
$ npm install @nypost/stylelint-config --save-dev
Note: This package requires Node.js 14.0.0 and Stylelint 14.0.0 or later. It is not compatible with older versions.
Usage
If you've installed @nypost/stylelint-config
locally within your project, just set your stylelint
config to:
{
"extends": "@nypost/stylelint-config"
}
Extending the config
Simply add a "rules"
key to your config and add your overrides there.
For example, to change the block-no-empty
to false and turn off the block-no-empty
rule:
{
"extends": "@nypost/stylelint-config",
"rules": {
"block-no-empty": false,
}
}
Dependencies
This configuration has peer dependencies of postSCSS custom syntax and stylelint-order.