mirror of
https://github.com/cookiecutter/cookiecutter-django.git
synced 2025-02-16 19:41:03 +03:00
Remove prettier unless in pre-commit (#4418)
* Remove prettier webpack in pre-commit * Update {{cookiecutter.project_slug}}/.pre-commit-config.yaml Co-authored-by: Bruno Alla <browniebroke@users.noreply.github.com> * Tweak vertical spacing --------- Co-authored-by: Bruno Alla <browniebroke@users.noreply.github.com> Co-authored-by: Bruno Alla <alla.brunoo@gmail.com>
This commit is contained in:
parent
0225a7c83f
commit
d13e4270c2
|
@ -16,6 +16,7 @@ repos:
|
|||
- id: check-case-conflict
|
||||
- id: check-docstring-first
|
||||
- id: detect-private-key
|
||||
{%- if cookiecutter.frontend_pipeline in ["Webpack", "Gulp"] %}
|
||||
|
||||
- repo: https://github.com/pre-commit/mirrors-prettier
|
||||
rev: v3.0.0-alpha.9-for-vscode
|
||||
|
@ -23,6 +24,7 @@ repos:
|
|||
- id: prettier
|
||||
args: ['--tab-width', '2', '--single-quote']
|
||||
exclude: '{{cookiecutter.project_slug}}/templates/'
|
||||
{%- endif %}
|
||||
|
||||
- repo: https://github.com/adamchainz/django-upgrade
|
||||
rev: '1.14.0'
|
||||
|
|
Loading…
Reference in New Issue
Block a user