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

Refactor and optimize codebase #2

Closed
wants to merge 7 commits into from
Closed

Refactor and optimize codebase #2

wants to merge 7 commits into from

Commits on Aug 6, 2023

  1. fix(README.md): MD001/header-increment

    - Heading levels should only increment by one level at a time.
    RoachxD committed Aug 6, 2023
    Configuration menu
    Copy the full SHA
    141f8ec View commit details
    Browse the repository at this point in the history
  2. fix(package-lock.json): 2 vulnerabilities

    - Fixed 1 high and 1 moderate vulnerabilities.
    RoachxD committed Aug 6, 2023
    Configuration menu
    Copy the full SHA
    18200d2 View commit details
    Browse the repository at this point in the history

Commits on Aug 12, 2023

  1. feat: Add Prettier and configure it

    - Prettier has been added and configured for this project.
    - The `.gitignore` file has been updated.
    - A new `.prettierignore` file has been created.
    RoachxD committed Aug 12, 2023
    Configuration menu
    Copy the full SHA
    bdeecab View commit details
    Browse the repository at this point in the history
  2. feat: add index.ts to components and update main index.ts

    - Created `index.ts` file for `components`.
    - Updated main `index.ts` in order to reflect the above addition.
    - Sorted imports inside main `index.ts`.
    RoachxD committed Aug 12, 2023
    Configuration menu
    Copy the full SHA
    d7c2f0b View commit details
    Browse the repository at this point in the history
  3. feat(utils): Optimize isEmpty function

    - Created `utils.ts` and added a micro-optimized version of `isEmpty` from 'i18n-mini/lib/utils', which is ~70% faster.
    - Updated `DateTime.tsx` and `Numeric.tsx` components to use the new optimized `isEmpty` function.
    RoachxD committed Aug 12, 2023
    Configuration menu
    Copy the full SHA
    7e6316e View commit details
    Browse the repository at this point in the history
  4. refactor(DateTime, Numeric): Improve code readability

    - Defined a new constant for preset values.
    - Reversed ternary operator.
    - Used nullish coalescing operator instead of the logical OR operator.
    RoachxD committed Aug 12, 2023
    Configuration menu
    Copy the full SHA
    27315d8 View commit details
    Browse the repository at this point in the history
  5. style: Format all files through Prettier

    - Formatted all files through Prettier (`npx prettier . --write`).
    RoachxD committed Aug 12, 2023
    Configuration menu
    Copy the full SHA
    acba27b View commit details
    Browse the repository at this point in the history