Skip to content

feat: add prettier for code formatting#772

Merged
max246 merged 1 commit intobropat:developfrom
DevAlien:feature/add-prettier-develop
Jan 26, 2026
Merged

feat: add prettier for code formatting#772
max246 merged 1 commit intobropat:developfrom
DevAlien:feature/add-prettier-develop

Conversation

@DevAlien
Copy link
Copy Markdown
Contributor

Changes

  • Add prettier as dev dependency
  • Add .prettierrc configuration (2-space indent to match project style)
  • Add .prettierignore to exclude build artifacts, docs, and generated files
  • Add npm run format script to format all TypeScript files
  • Add npm run format:check script for CI validation
  • Format all existing TypeScript files in src/
  • Bugfix: generateUDID now uses padStart(16, '0') to ensure consistent 16-char output

Configuration

{
  "semi": true,
  "trailingComma": "es5",
  "singleQuote": false,
  "printWidth": 120,
  "tabWidth": 2,
  "useTabs": false,
  "bracketSpacing": true,
  "arrowParens": "always",
  "endOfLine": "lf"
}

- Add prettier as dev dependency
- Add .prettierrc configuration (2-space indent to match project style)
- Add .prettierignore to exclude build artifacts
- Add format and format:check npm scripts
- Format all TypeScript files in src/
- Fix generateUDID to always return 16 chars (padStart)
@max246 max246 merged commit 634e33e into bropat:develop Jan 26, 2026
2 checks passed
Abs3601 added a commit to Abs3601/eufy-security-client that referenced this pull request Feb 1, 2026
Resolved conflicts with prettier formatting changes (PR bropat#772).
Re-applied E40 device support including:
- DeviceType.CAMERA_E40 (T8144) in types.ts
- Device properties configuration for E40
- Device commands for E40 (streaming, talkback, snooze)
- isCameraE40() classification method
- Updates to isCamera2Product(), isCamera(), hasBattery()
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