open-index/open-npm huggingface dataset:
npm package: @sourcegraph/stylelint-config
Description: [![npm](https://img.shields.io/npm/v/@sourcegraph/stylelint-config.svg)](https://www.npmjs.com/package/@sourcegraph/stylelint-config) [![downloads](https://img.shields.io/npm/dt/@sourcegraph/stylelint-config.svg)](https://www.npmjs.com/package/@sourcegrap
Latest version: 1.4.1

# @sourcegraph/stylelint-config

[![npm](https://img.shields.io/npm/v/@sourcegraph/stylelint-config.svg)](https://www.npmjs.com/package/@sourcegraph/stylelint-config)
[![downloads](https://img.shields.io/npm/dt/@sourcegraph/stylelint-config.svg)](https://www.npmjs.com/package/@sourcegraph/stylelint-config)
[![code style: prettier](https://img.shields.io/badge/code_style-prettier-ff69b4.svg)](https://github.com/prettier/prettier)
[![semantic-release](https://img.shields.io/badge/%20%20%F0%9F%93%A6%F0%9F%9A%80-semantic--release-e10079.svg)](https://github.com/semantic-release/semantic-release)

Shared stylelint config for all Sourcegraph projects

## Install

```
npm install -D @sourcegraph/stylelint-config
```
npm package: @sourcegraph/stylelint-plugin-sourcegraph
Description: Custom stylelint rules for Sourcegraph
Latest version: 1.0.1

# stylelint-plugin-sourcegraph

Recommended Stylelint rules for the Sourcegraph repo.

## Setup

Update your `.stylelintrc.json` file to add the following configuration:

```json
{
  "plugins": ["@sourcegraph/stylelint-plugin-sourcegraph"],
  "rules": {
    "@sourcegraph/filenames-match-regex": [
      2,
      {
        "regexp": "^.+\\.module(\\.scss)$"
      }
    ],
    "@sourcegraph/no-restricted-imports": [
      2,
      {
        "paths": ["bootstrap*", "reactstrap/styles.css"]
      }
    ]
  }
}
```