Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@pro-vision/stylelint-config-pv

Package Overview
Dependencies
Maintainers
4
Versions
9
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@pro-vision/stylelint-config-pv

pro!vision stylelint configuration. Can be adapted and adjusted in each project.

  • 2.0.5
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
909
increased by11.67%
Maintainers
4
Weekly downloads
 
Created
Source

@pro-vision/stylelint-config-pv

This package provides pro!vision's Stylelint configuration as an extensible shared config. It follows the Idiomatic CSS for ordering properties.

Inspired by Stylelint's own stylelint-config-standard

Installation

npm i -DE stylelint-scss stylelint stylelint-order stylelint-declaration-use-variable @pro-vision/stylelint-config-pv

Prerequisite

You obviously need stylelint installed. Unless you are only using the plain css rules, you will also need to install some plugins

# default
npm i -DE stylelint  stylelint-scss stylelint-declaration-use-variable stylelint-order

# plain CSS only
npm i -DE stylelint

# scss rules
npm i -DE stylelint-scss stylelint-declaration-use-variable

# idiomatic css
npm i -DE stylelint-order

Usage

We export two configurations for usage in projects, with the possibility to include or exclude Idiomatic CSS

CSS + SCSS + Idioatic rules

Our default export contains all of our Stylelint rules, including SCSS plugins. Add an "extends": array to your .stylelintrc:

{
  "extends": [
    "@pro-vision/stylelint-config-pv"
  ],
  "rules": {
    // you can overwrite individual rules here
  }
}

CSS runles only rules

Alternatively, you can import whatever combination of the following rules suits your project:

{
  "extends": [
    "@pro-vision/stylelint-config-pv/plain-css",
    "@pro-vision/stylelint-config-pv/scss",
    "@pro-vision/stylelint-config-pv/order",
  ],
  "rules": {
    // you can overwrite individual rules here
  }
}

For information about individual rules see See

Text editor integration

There are a Visual Studio Code plugin and a Sublime Linter plugin for Stylelint.

According to the documentation,

Version 2016.3 onwards has built-in support for stylelint.

Keywords

FAQs

Package last updated on 29 Aug 2018

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