@onefinity/stylelint-config
v2.2.1
Published
Generic base configuration for [Stylelint][stylelint], supports [Sass][sass] and [CSS Modules][css-modules]. Combine it with [`@onefinity/eslint-config`][onefinity-eslint-config] to lint JavaScript as well.
Downloads
1
Readme
Onefinity Stylelint Config
Generic base configuration for Stylelint, supports Sass
and CSS Modules. Combine it with
@onefinity/eslint-config
to lint JavaScript as
well.
Available configurations
The following configurations are available and can be extended in a project-specific Stylelint configuration.
@onefinity/stylelint-config
Base configuration for projects using CSS or Sass.
Usage
Installation
Install the package using the following command.
$ npm install --save-dev @onefinity/stylelint-config
Extending
Use the extends
feature provided by Stylelint in the
project-specific .stylelintrc
configuration file.
{
"extends": [
"@onefinity/stylelint-config"
]
}
Scripts
The following scripts can be added to package.json
to make it easier to start
the linter.
{
"scripts": {
"lint:css": "stylelint \"source/**/*.scss\"",
"lint:fix": "npm run lint:css -- --fix"
}
}