@onefinity/stylelint-config

2.2.1 • Public • Published

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.

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"
    }
}

Readme

Keywords

none

Package Sidebar

Install

npm i @onefinity/stylelint-config

Weekly Downloads

1

Version

2.2.1

License

MIT

Unpacked Size

11.2 kB

Total Files

4

Last publish

Collaborators

  • cascornelissen