Skip to content

Commit 4d6e9d0

Browse files
committed
Add stylelint hook and config
1 parent 541950a commit 4d6e9d0

File tree

2 files changed

+19
-0
lines changed

2 files changed

+19
-0
lines changed

.pre-commit-config.yaml

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -57,3 +57,14 @@ repos:
5757
rev: v1.7.3
5858
hooks:
5959
- id: remove-metadata
60+
61+
- repo: https://github.com/thibaudcolas/pre-commit-stylelint
62+
rev: v16.5.0
63+
hooks:
64+
- id: stylelint
65+
# automatically fix .scss files where possible
66+
args: [--fix]
67+
additional_dependencies:
68+
# stylelint itself needs to be here when using additional_dependencies.
69+
- stylelint@16.5.0
70+
- stylelint-config-standard-scss@13.1.0

.stylelintrc.json

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
{
2+
"extends": "stylelint-config-standard-scss",
3+
"rules": {
4+
"selector-class-pattern": null,
5+
"no-descending-specificity": null,
6+
"selector-id-pattern": null
7+
}
8+
}

0 commit comments

Comments
 (0)