@code-quality/stylelint-styled-components-config

The style lint config you have been looking for.

Usage no npm install needed!

<script type="module">
  import codeQualityStylelintStyledComponentsConfig from 'https://cdn.skypack.dev/@code-quality/stylelint-styled-components-config';
</script>

README

Actions Status

StyleLint Styled Components Config

stylelint modern linter that helps you avoid errors and enforce conventions in your styles.

Install

yarn add stylelint prettier @code-quality/stylelint-styled-components-config stylelint-config-prettier -D

Usage

The shareable config can be configured in the stylelint configuration file:

Create a .stylelintrc.js file with the following contents:

module.exports = {
  extends: [
    '@code-quality/stylelint-styled-components-config',
    'stylelint-config-prettier',
  ],
}