@sourcegraph/stylelint-plugin-sourcegraph
v1.0.1
Published
Custom stylelint rules for Sourcegraph
Downloads
505
Readme
stylelint-plugin-sourcegraph
Recommended Stylelint rules for the Sourcegraph repo.
Setup
Update your .stylelintrc.json
file to add the following configuration:
{
"plugins": ["@sourcegraph/stylelint-plugin-sourcegraph"],
"rules": {
"@sourcegraph/filenames-match-regex": [
2,
{
"regexp": "^.+\\.module(\\.scss)$"
}
],
"@sourcegraph/no-restricted-imports": [
2,
{
"paths": ["bootstrap*", "reactstrap/styles.css"]
}
]
}
}