Socket
Socket
Sign inDemoInstall

stylelint-config-styled-components

Package Overview
Dependencies
Maintainers
1
Versions
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

stylelint-config-styled-components

A shareable stylelint config for stylelint-processor-styled-components


Version published
Weekly downloads
329K
increased by6.25%
Maintainers
1
Weekly downloads
 
Created
Source

stylelint-config-styled-components

The shareable stylelint config for stylelint-processor-styled-components

npm version build status greenkeeper badge

Why

When using stylelint-processor-styled-components a couple of stylelint rules throw errors that you cannot prevent. Like 'no-empty-source' or 'no-missing-end-of-source-newline'.

This shareable config will automatically disable rules that cause unresolvable conflicts. Besides those rules vendor prefixed properties and values will throw an error since styled-components automatically generates vendor prefixes for your css. Note that if you want to change any of these rules you can always override them in your stylelint config.

Installation

npm install stylelint-config-styled-components --save-dev

Usage

After installing, add this config to your stylelint config like so:

{
  "extends": "stylelint-config-styled-components"
}

If you're extending multiple shareable configs, put this config as the last so it overrides the relevant rules in all previous configs:

{
  "extends": [
    "stylelint-config-standard",
    "stylelint-config-styled-components"
  ]
}

See also https://stylelint.io/user-guide/configuration for documentation on the various ways stylelint can be configured.

License

MIT

Keywords

FAQs

Package last updated on 29 Aug 2017

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc