@studiometa/stylelint-config

StyleLint Configuration

Downloads in past

Stats

StarsIssuesVersionUpdatedCreatedSize
@studiometa/stylelint-config
153.0.07 months ago4 years agoMinified + gzip package size for @studiometa/stylelint-config in KB

Readme

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)