Skip to content

Add linting scripts for phpcbf and prettier in package.json#2

Open
datengraben wants to merge 11 commits into
masterfrom
claude/add-linting-checks-Js5rv
Open

Add linting scripts for phpcbf and prettier in package.json#2
datengraben wants to merge 11 commits into
masterfrom
claude/add-linting-checks-Js5rv

Conversation

@datengraben

Copy link
Copy Markdown
Owner

Summary

  • Add prettier ^3.0.0 as a devDependency
  • Add lint:php script that runs vendor/bin/phpcbf for PHP code style fixing
  • Add lint:js script that runs prettier --check 'assets/**/*.js' to verify JS formatting
  • Add lint script that combines both checks via npm run lint:php && npm run lint:js

Test plan

  • Run npm install to install the new prettier devDependency
  • Run npm run lint:php and confirm phpcbf runs against PHP source files
  • Run npm run lint:js and confirm prettier checks JS files under assets/
  • Run npm run lint and confirm both checks execute in sequence

https://claude.ai/code/session_01JA2idCjLjHr7dNGMs6CYiv

claude and others added 11 commits April 14, 2026 07:12
- Add prettier ^3.0.0 as a devDependency
- Add lint:php script running vendor/bin/phpcbf
- Add lint:js script running prettier --check on assets JS files
- Add lint script combining both lint:php and lint:js

https://claude.ai/code/session_01JA2idCjLjHr7dNGMs6CYiv
- Add husky ^9.0.0 and lint-staged ^15.0.0 as devDependencies
- Add prepare script to install husky on npm install
- Add lint-staged config: phpcbf for *.php, prettier --write for assets JS
- Add .husky/pre-commit hook that runs lint-staged before each commit
- Document linting setup in Readme.md under Development

https://claude.ai/code/session_01JA2idCjLjHr7dNGMs6CYiv
…e-2156

GBFS: refactor every response to go through same validation function
wielebenwir#2158 BookingRule::checkMaxBookingDays does not work for uneven amount of days
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.

3 participants