New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

@ebarooni/stylelint-config

Package Overview
Dependencies
Maintainers
1
Versions
9
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@ebarooni/stylelint-config

A standard shareable config for Stylelint

  • 1.2.0
  • latest
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
1
decreased by-50%
Maintainers
1
Weekly downloads
 
Created
Source

@ebarooni/stylelint-config

This package provides custom Stylelint configurations for linting CSS, SCSS, and other style sheets.

Prerequisites

The peer dependencies might need to be installed separately. To install the peer dependencies run the following command:

npm i -D postcss stylelint stylelint-config-standard-scss

Installation

To install the package, run the following command:

npm i -D @ebarooni/stylelint-config

Usage

To use the configuration in a project, extend it in the .stylelintrc.json file:

{
  "extends": ["@ebarooni/stylelint-config"]
}

Scripts

The following helper scripts can be added to package.json:

{
  "scripts": {
    "lint:style": "npx stylelint \"**/*.(css|scss)\"",
    "fmt:style": "npx stylelint \"**/*.(css|scss)\" --fix"
  }
}

Example

  • ignoreFiles: A pattern to ignore the files in a specific directory.
  • overrides: In case different configurations are wanted for different directories.
  • overrides.files: The directories that should apply the extended configuration.
{
  "ignoreFiles": ["example/(ios|android)/**/*.(css|scss)"],
  "overrides": [
    {
      "files": ["example/**/*.(css|scss)"],
      "extends": ["@ebarooni/stylelint-config"]
    }
  ]
}

Keywords

FAQs

Package last updated on 25 Nov 2024

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