Skip to content

chore: improve code quality and documentation#3

Open
AungMyoKyaw wants to merge 1 commit into
masterfrom
chore/improve-code-quality-and-documentation
Open

chore: improve code quality and documentation#3
AungMyoKyaw wants to merge 1 commit into
masterfrom
chore/improve-code-quality-and-documentation

Conversation

@AungMyoKyaw

Copy link
Copy Markdown
Owner

Summary

This PR improves code quality and documentation across the repository:

  • Enhanced .gitignore: Added comprehensive entries for IDE files (.idea, .vscode), OS generated files (.DS_Store, Thumbs.db), test coverage, environment files, logs, and temporary files

  • Updated .npmignore: Improved exclusions for npm package publishing, including config files (eslint, prettier, tsconfig), bench folder, and lock files

  • Improved README: Added Project Structure section with detailed file descriptions and Contributing section with guidelines for code style and PR process

  • Standardized Type Interfaces: Made ChineseZodiacResult and ZodiacResult consistent with other localized types by using en/my properties. Maintained backward compatibility by keeping deprecated sign/signInBurmese/sign_mm properties

Test plan

  • All 367 tests pass (bun test)
  • TypeScript compilation succeeds (bun run typecheck)
  • ESLint passes (bun run lint)
  • Pre-commit hooks pass (lint-staged)

Changes

File Changes
.gitignore +43 lines (comprehensive ignore patterns)
.npmignore +20 lines (better package exclusions)
README.md +52 lines (project structure, contributing)
src/types.ts Standardized interface properties
src/lib/baydin.ts Updated to return new properties with backward compatibility

- Enhance .gitignore with comprehensive entries for IDE, OS, and temp files
- Update .npmignore to properly exclude dev files from npm package
- Add Project Structure and Contributing sections to README
- Add Changelog link to README for better documentation
- Standardize type interfaces (ChineseZodiacResult, ZodiacResult) with
  consistent `en`/`my` properties while maintaining backward compatibility
  via deprecated `sign`/`signInBurmese`/`sign_mm` properties
Copilot AI review requested due to automatic review settings February 15, 2026 19:47

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Pull request overview

This PR improves code quality and documentation by standardizing type interfaces and enhancing configuration files. It makes the codebase more consistent and professional without introducing breaking changes.

Changes:

  • Standardized ChineseZodiacResult and ZodiacResult interfaces to use en/my properties (matching LocalizedString convention) while maintaining deprecated properties for backward compatibility
  • Enhanced .gitignore and .npmignore with comprehensive patterns for IDE files, OS files, test coverage, and config files
  • Added detailed Project Structure and Contributing sections to README with file descriptions and development guidelines

Reviewed changes

Copilot reviewed 4 out of 5 changed files in this pull request and generated no comments.

Show a summary per file
File Description
src/types.ts Standardized zodiac result interfaces with en/my properties and deprecated old properties
src/lib/baydin.ts Updated zodiac functions to return both new and deprecated properties for backward compatibility
README.md Added Project Structure section and Contributing guidelines
.gitignore Added comprehensive ignore patterns for IDE, OS, coverage, and temporary files
.npmignore Improved package exclusions for config files, bench folder, and lock files

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

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