Skip to content

pre-commit: format files with prettier #1936

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged

Conversation

cclauss
Copy link
Contributor

@cclauss cclauss commented Jan 14, 2024

Add to

    - repo: https://github.com/pre-commit/mirrors-prettier
      rev: v4.0.0-alpha.8
      hooks:
          - id: prettier
            types_or: [json, toml, xml, yaml]

Change .editorconfig file setting for yaml files to be indent_size = 2.

@cclauss cclauss requested review from claudep and acdha January 14, 2024 07:34
Copy link
Contributor

@claudep claudep left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I don't really care for those sort of reformatting, feel free to go ahead if it matters to you.

@cclauss cclauss merged commit bc342e0 into django-haystack:master Jan 14, 2024
@cclauss cclauss deleted the pre-commit_format_with_prettier branch January 14, 2024 15:47
dwasyl pushed a commit to dwasyl/django-haystack that referenced this pull request Apr 28, 2025
* pre-commit: format files with prettier

* yaml indent_size = 2
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants