Skip to content
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

Fixed #207 -- Add lint check on pre-commit for front end #251

Closed
wants to merge 4 commits into from

Conversation

29deepanshutyagi
Copy link
Contributor

@29deepanshutyagi 29deepanshutyagi commented Dec 9, 2024

This PR updates the .pre-commit-config.yaml file to include Prettier for linting front-end code.

closes #207

Copy link

@github-actions github-actions bot left a comment

Choose a reason for hiding this comment

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

Welcome to Django India! 🎉🇮🇳

We're so happy to see you contribute. Your efforts mean a lot to us and we're excited to have you on this journey.

Before we proceed, please take a moment to review our contribution guide. It's packed with all the information you need to make your contribution seamless.

If you're fixing an issue from the Django India issue tracker, remember to get it assigned to you before you acutally start working on it.

If you ever need help or just want to chat, the Django India discord server is always open. We're here for you!

And while you're here, don't forget to ⭐ star our repo to show your support! It helps the community grow.

Thank you for being a part of Django India. Together, let's make an amazing community! 🚀

@ankanchanda
Copy link
Collaborator

what are other options for lint and how prettier is better?

@29deepanshutyagi
Copy link
Contributor Author

29deepanshutyagi commented Dec 9, 2024

what are other options for lint and how prettier is better?

other options we can use ESlint and TSlint , but prettier gave consistency and easy integration , i think so

Comment on lines +4 to +17
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v4.5.0
hooks:
- id: check-yaml
- id: check-case-conflict
- id: check-json
- id: check-merge-conflict
- id: check-symlinks
- id: check-toml
- id: end-of-file-fixer
exclude: ^(frontend/|.*\.js$)
- id: requirements-txt-fixer
- id: detect-private-key
- repo: https://github.com/astral-sh/ruff-pre-commit
Copy link
Member

Choose a reason for hiding this comment

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

I think you have added unnecessary indentation in the existing pre-commit hooks 🤔

Copy link
Contributor Author

Choose a reason for hiding this comment

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

actually , it was done by prettier itself

@29deepanshutyagi 29deepanshutyagi closed this by deleting the head repository Dec 21, 2024
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.

[FEATURE] Add lint check on pre-commit for front end
3 participants