diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index 5a9e918f0..ab794f30d 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -1,4 +1,4 @@ -exclude: '(^djangoproject\/static\/.*$)' +exclude: '^djangoproject\/static\/(css\/|fonts\/|img\/|robots).*$' default_language_version: python: python3 repos: @@ -19,6 +19,7 @@ repos: - id: debug-statements - id: detect-private-key - id: end-of-file-fixer + exclude: '(^djangoproject\/static\/js\/lib\/.*$)' exclude_types: [json, sql] - id: file-contents-sorter files: ^(requirements/\w*.txt)$ @@ -46,6 +47,7 @@ repos: hooks: - id: prettier exclude_types: [html, json, scss] + exclude: '(^djangoproject\/static\/js\/lib\/.*$)' - repo: https://github.com/pycqa/isort rev: "5.13.2" hooks: diff --git a/.prettierrc b/.prettierrc new file mode 100644 index 000000000..6962fc73f --- /dev/null +++ b/.prettierrc @@ -0,0 +1,11 @@ +{ + "overrides": [ + { + "files": "*.js", + "options": { + "tabWidth": 2, + "singleQuote": true + } + } + ] +}