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

@loadsmart/stylelint-config

Package Overview
Dependencies
Maintainers
18
Versions
8
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@loadsmart/stylelint-config

A shareable default Stylelint config for ease of use in projects

  • 1.2.1
  • latest
  • Source
  • npm
  • Socket score

Version published
Maintainers
18
Created
Source

stylelint-config-loadsmart

A default configuration for Stylelint to be used on all projects that have CSS code in the company (or whoever wants to use it).

Usage

  1. Install stylelint with (preferably as a dev dependency):
# with yarn
yarn add -D stylelint

# with npm
npm install --save-dev stylelint
  1. Install this config preset (also preferably as a dev dependency):
# with yarn
yarn add -D @loadsmart/stylelint-config

# with npm
npm install --save-dev @loadsmart/stylelint-config
  1. Extend it in your .stylelintrc.* file like so:
{
    "...": "hide other properties for brevity",
    "extends": ["...", "@loadsmart/stylelint-config"],
}

Keep in mind that rules that come last in the array will have higher priority and override the others that came before it.

It is recommended to have this ruleset in the first spot, and project specific rule sets after it (which should be kept to a minimum ideally).

About this preset

This preset includes a few of the more important presets for stylelint and should be considered the standard for Loadsmart.

This preset includes/extends:

  • stylelint-config-recommended
  • stylelint-config-recess-order
  • stylelint-config-prettier

And uses the following plugins:

Major shout-outs and thanks to the contributors and maintainers of each of these projects! :celebrate:

For more info, take a look at the default export in the index.js file. The config there is pretty self-explanatory.

Contributing

To contribute, simply open a PR.

For major rule changes that can affect everyone, it is advised to first start an RFC to discuss it.

For issues, report them straight to the github repo's issues page.

Keywords

FAQs

Package last updated on 24 Nov 2023

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