Skip to content

studiometa/stylelint-config

Repository files navigation

StyleLint Configuration

NPM Version Dependency Status devDependency Status

Studio Meta's one and only Stylelint configuration to be used across projects.

Usage

Install the package with your favorite package manager:

yarn add --dev @studiometa/stylelint-config
# or
npm install --save-dev @studiometa/stylelint-config

Create a .stylelintrc.js in your project's root folder with the following:

module.exports = {
  extends: '@studiometa/stylelint-config',
};

It is recommended to use Prettier in your project for a more opinionated linting and formatting of your files. To do so, you can use the prettier configuration sent in this package. Add a .prettierrc file at the root of your project and set the StyleLint configuration as follow:

module.exports = {
  extends: '@studiometa/stylelint-config/prettier',
};

TODO

  • Add tests (cf. tests from recommended configuration)