Proposal: Integrating Prettier, ESLint, Husky, and Lint-Staged with the Auro Project #543
rsstdd
started this conversation in
Improved tech suggestion
Replies: 1 comment
-
Thanks for this @DukeFerdinand. We do most of this already with the Auro repos, but it's the Integrate ESLint with Prettier that I am most interested in. Could you create an issue with the WC-Generator with the scope of the work needed to add this to the generator? That would be awesome! Thanks! |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Proposal: Integrating Prettier, ESLint, Husky, and Lint-Staged with the Auro Project
Hello Team,
This proposal outlines integrating the tools — Prettier, ESLint, Husky, and Lint-Staged — into the Auro project's development workflow to ensure high code quality and consistency standards. Integrating these tools will enforce coding standards and streamline the development process.
Integrating Prettier, ESLint, and Stylelint into pre-commit hooks streamlines the development workflow by automating coding standards enforcement. This automation ensures guideline compliance, prevents minor errors, and promotes maintainable code without manual reviews. Pre-commit hooks also reduce the time and resources spent on code reviews and debugging by catching issues early. This setup fosters a culture of quality and consistency, which is essential in collaborative and complex projects.
Integration Overview
Setup ESLint
Setup Stylelint
.stylelintrc.json
orstylelint.config.js
in the project root to define rules that align with Auro's CSS/SCSS coding practices:Integrate Prettier
.prettierrc.yaml
:.prettierignore
:node_modules ...
Integrate ESLint with Prettier
Setup Husky for Pre-commit Hooks
Alternatively, you can use the following configuration.
./husky/pre-commit
:Add Stylelint Script
Configure Lint-Staged
lint-staged
inpackage.json
to run ESLint, Prettier, and Lint-Staged on staged files:Testing and Validation
Documentation
Integration Considerations
Benefits
This integration aims to:
Request for Comments
Please review this proposal and provide feedback. I'd love to discuss any concerns or additional ideas you have.
Beta Was this translation helpful? Give feedback.
All reactions