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

Editor & Code Formatting Config #3

Closed
5 tasks done
joshuapease opened this issue May 9, 2024 · 0 comments
Closed
5 tasks done

Editor & Code Formatting Config #3

joshuapease opened this issue May 9, 2024 · 0 comments
Assignees

Comments

@joshuapease
Copy link
Contributor

joshuapease commented May 9, 2024

  • Husky or vanilla Git hooks
  • PHPStan
  • PHP Formatting
  • Prettier
  • eslint
@joshuapease joshuapease self-assigned this May 20, 2024
joshuapease added a commit that referenced this issue May 21, 2024
joshuapease added a commit that referenced this issue May 21, 2024
joshuapease added a commit that referenced this issue May 21, 2024
joshuapease added a commit that referenced this issue May 21, 2024
- npm install --save-dev husky
- npx husky init

Add DDEV configs to ensure Husky is connected to the user & DDEV's Git processes
joshuapease added a commit that referenced this issue May 21, 2024
This runs our linters & formatters on just the files that have changed.
joshuapease added a commit that referenced this issue May 22, 2024
This runs our linters & formatters on just the files that have changed.
joshuapease added a commit that referenced this issue May 22, 2024
joshuapease added a commit that referenced this issue May 22, 2024
joshuapease added a commit that referenced this issue May 22, 2024
joshuapease added a commit that referenced this issue May 22, 2024
* [#3] Add prettier and .editorconfig

* [#3] Run `prettier . --write`

* [#3] Install & configure eslint

* [#3] Install PHP ECS and run fix

* [#3] Install and configure PHPStan

* [#3] Install Husky

- npm install --save-dev husky
- npx husky init

Add DDEV configs to ensure Husky is connected to the user & DDEV's Git processes

* [#3] Install & configure lint-staged

This runs our linters & formatters on just the files that have changed.

* [#3] eslint disallow console.log

* [#3] Remove npm run prepare from ddev.

Apparently `prepare` runs after each npm install.

https://typicode.github.io/husky/how-to.html#manual-setup

* [#3] PR Feedback
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

No branches or pull requests

1 participant