New Research: Supply Chain Attack on Axios Pulls Malicious Dependency from npm.Details →
Socket
Book a DemoSign in
Socket

@codesect/stylelint-config

Package Overview
Dependencies
Maintainers
1
Versions
2
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@codesect/stylelint-config

CodeSect shareable config for stylelint

latest
Source
npmnpm
Version
0.1.1
Version published
Maintainers
1
Created
Source

@codesect/stylelint-config

Shared stylelint config for all CodeSect projects. This config is based on stylelint-config-standard.

Install

npm install -D @codesect/stylelint-config
# Or with yarn:
yarn add @codesect/stylelint-config --dev

This package requires stylelint version 11 or greater. You can either install it yourself as a dev dependency or use npx install-peerdeps ... which will install both our stylelint config and its peers:

npx install-peerdeps --dev @codesect/stylelint-config

Usage

You can reference/extend the config in your .stylelintrc config object. This will serve as a base for your config.

{
  "extends": "@codesect/stylelint-config"
}

You can override the rules by adding a "rules" key to your config file. For example, if you want to allow ID selectors, you can set selector-max-id to null and to use tabs instead of spaces, you can set indentation to tab:

{
  "extends": "@codesect/stylelint-config",
  "rules": {
    "indentation": "tab",
    "selector-max-id": null
  }
}

Presets

In addition to the default preset, there is also an SCSS preset. This preset extends @codesect/stylelint-config.

SCSS

{
  "extends": "@codesect/stylelint-config/scss"
}

License

MIT © Zsolt Meszaros

Keywords

stylelint

FAQs

Package last updated on 21 Nov 2019

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