@sourcegraph/stylelint-plugin-sourcegraph
Version:
Custom stylelint rules for Sourcegraph
28 lines (23 loc) • 515 B
Markdown
Recommended Stylelint rules for the Sourcegraph repo.
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"]
}
]
}
}
```