An open API service indexing awesome lists of open source software.

https://github.com/studiometa/stylelint-config

StyleLint Configuration
https://github.com/studiometa/stylelint-config

Last synced: about 1 year ago
JSON representation

StyleLint Configuration

Awesome Lists containing this project

README

          

# StyleLint Configuration

[![NPM Version](https://img.shields.io/npm/v/@studiometa/stylelint-config.svg?style=flat-square)](https://www.npmjs.com/package/@studiometa/stylelint-config)
[![Dependency Status](https://img.shields.io/david/studiometa/stylelint-config.svg?label=deps&style=flat-square)](https://david-dm.org/studiometa/stylelint-config)
[![devDependency Status](https://img.shields.io/david/dev/studiometa/stylelint-config.svg?label=devDeps&style=flat-square)](https://david-dm.org/studiometa/stylelint-config?type=dev)

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

## Usage

Install the package with your favorite package manager:

```bash
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:

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

It is recommended to use [Prettier](https://prettier.io/) 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:

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

## TODO

- Add tests (cf. [tests](https://github.com/stylelint/stylelint-config-recommended/blob/master/__tests__/index.test.js) from recommended configuration)