Launch Week Day 2: Introducing Reports: An Extensible Reporting Framework for Socket Data.Learn More
Socket
Book a DemoSign in
Socket

@borealisgroup/stylelint-config

Package Overview
Dependencies
Maintainers
3
Versions
22
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@borealisgroup/stylelint-config

Stylelint config for CSS linting.

latest
Source
npmnpm
Version
1.13.6
Version published
Weekly downloads
22
-12%
Maintainers
3
Weekly downloads
 
Created
Source

@borealisgroup/stylelint-config

Stylelint config for CSS linting.

Prerequisites

  • react
  • styled-components

Install

Using npm:

yarn -D @borealisgroup/stylelint-config

Usage

Create a file stylelint.config.js at the root of your project:

module.exports = require('@borealisgroup/stylelint-config');

Stylelint

Plugins

  • stylelint-config-standard - rules

  • stylelint-config-styled-components - to disable stylelint rules that clash with styled-components

  • stylelint-config-styled-components-processor - to extract styles from styled-components

Rules

  • 'block-no-empty': null - accept styled components with no style, i.e. when we just want to use named components for readability.

Why

Why do we need a shared coding style accross the company?

TL;DR - For consistency, productivity and happiness.

Contributing

If you want to modify plugins or rules in your project, please submit a pull request instead of overwriting your local config.

For each addition, add a justification in this README.

Keywords

stylelint

FAQs

Package last updated on 08 Jul 2020

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