|
@@ -7,7 +7,7 @@ repos:
|
|
|
hooks:
|
|
|
- id: black
|
|
|
language_version: python3
|
|
|
- args: ["--target-version", "py37"]
|
|
|
+ args: ['--target-version', 'py37']
|
|
|
- repo: https://github.com/timothycrosley/isort
|
|
|
# isort config is in setup.cfg
|
|
|
rev: 5.6.4
|
|
@@ -25,3 +25,26 @@ repos:
|
|
|
rev: v1.4.13
|
|
|
hooks:
|
|
|
- id: djhtml
|
|
|
+ - repo: https://github.com/pre-commit/mirrors-prettier
|
|
|
+ rev: v2.5.1
|
|
|
+ hooks:
|
|
|
+ - id: prettier
|
|
|
+ types_or: [css, javascript, json, yaml]
|
|
|
+ - repo: https://github.com/pre-commit/mirrors-eslint
|
|
|
+ rev: v8.8.0
|
|
|
+ hooks:
|
|
|
+ - id: eslint
|
|
|
+ types: [file]
|
|
|
+ files: \.(js)$
|
|
|
+ args: [--report-unused-disable-directives]
|
|
|
+ additional_dependencies:
|
|
|
+ - eslint@8.8.0
|
|
|
+ - repo: https://github.com/thibaudcolas/pre-commit-stylelint
|
|
|
+ rev: v14.2.0
|
|
|
+ hooks:
|
|
|
+ - id: stylelint
|
|
|
+ files: \.css$
|
|
|
+ additional_dependencies:
|
|
|
+ - stylelint@14.9.1
|
|
|
+ - stylelint-config-standard@26.0.0
|
|
|
+ - stylelint-config-prettier@9.0.3
|