@onefinity/stylelint-config
v3.2.0
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.
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-configExtending
Use the extends feature provided by Stylelint in the
project-specific stylelint.config.mjs configuration file.
export default {
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"
}
}