Skip to content

Commit

Permalink
stylelint config and fixing
Browse files Browse the repository at this point in the history
  • Loading branch information
timcowlishaw committed Sep 4, 2024
1 parent 0f03cb2 commit d865a82
Show file tree
Hide file tree
Showing 3 changed files with 223 additions and 59 deletions.
20 changes: 15 additions & 5 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,21 @@ repos:
- id: prettier
types_or: [css, yaml, markdown, javascript, toml]

- repo: https://github.com/djlint/djLint
rev: v1.34.1
hooks:
- id: djlint-reformat-jinja
- id: djlint-jinja

- repo: https://github.com/thibaudcolas/pre-commit-stylelint
rev: v14.4.0
hooks:
- id: stylelint
additional_dependencies:
- [email protected]
- [email protected]
args: [--fix]

- repo: local
hooks:
- id: mypy
Expand All @@ -61,11 +76,6 @@ repos:
types: ["python"]
args: ["--check-untyped-defs"]

- repo: https://github.com/djlint/djLint
rev: v1.34.1
hooks:
- id: djlint-reformat-jinja
- id: djlint-jinja
- repo: local
hooks:
- id: pytest-check
Expand Down
14 changes: 14 additions & 0 deletions .stylelintrc.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
{
"extends": "stylelint-config-standard",
"rules": {
"no-descending-specificity": null,
"property-no-unknown": [
true,
{
"ignoreProperties": [
"scroll-behaviour"
]
}
]
}
}
Loading

0 comments on commit d865a82

Please sign in to comment.