Skip to content

Latest commit

 

History

History
 
 

stylelint-config-styled-components

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 
 
 
 
 

@strv/stylelint-config-styled-components

STRV's config for stylelint with styled-components

Usage

# Yarn:
yarn add --dev @strv/stylelint-config

# npm:
npm install --save-dev @strv/stylelint-config

We assume you are using prettier.

Recommended stylelint config

// .stylelintrc.js

'use strict'

module.exports = {
  extends: [
    '@strv/stylelint-config-styled-components',
    'stylelint-config-prettier',
  ],
}
.stylelintrc or .stylelintrc.json
{
  "extends": [
    "@strv/stylelint-config-styled-components",
    "stylelint-config-prettier"
  ]
}
package.json
{
  "stylelint": {
    "extends": [
      "@strv/stylelint-config-styled-components",
      "stylelint-config-prettier"
    ]
  }
}