Closed Vempaati closed 6 days ago
The latest update primarily involves formatting adjustments and code style enhancements across several components in the project. Key changes include updating shebang lines in scripts, commenting out direct linting commands, adding a prepare script in package.json
, and reformatting TypeScript components to improve readability and maintainability without altering their core functionality or exported entities.
Files/Directories | Change Summary |
---|---|
.husky/pre-commit |
Updated the shebang line from #!/bin/sh to #!/usr/bin/env sh and commented out the direct npm run lint command. |
package.json |
Added a "prepare": "husky install" script. |
src/components/ui/Accordion/*.tsx |
Minor code formatting, reformatting imports, removing semicolons, and merging type and function component declarations. |
src/components/ui/Avatar/*.tsx |
Restructured imports, adjusted code formatting, and made minor modifications to component functions. |
src/components/ui/Badge/Badge.tsx |
Refactored props destructuring and adjusted code formatting. |
src/components/ui/BlockQuote/BlockQuote.tsx |
Minor formatting adjustments and refactoring for improved readability. |
src/components/ui/Button/Button.tsx |
Refactored to include an onClick event handler in ButtonProps and the Button component; made formatting changes. |
src/components/ui/Callout/*.tsx |
Removed semicolons, adjusted indentation, and updated component structure for improved readability. |
src/components/ui/Card/*.tsx |
Removed semicolons, adjusted code structure and formatting, and updated export statements. |
src/components/ui/Code/Code.tsx |
Removed incorrect 'use client' statement, adjusted imports, and updated formatting. |
src/components/ui/Dropdown/Dropdown.tsx |
Updated formatting, refactored component function declarations, and modified structure for improved readability. |
src/components/ui/Em/Em.tsx |
Removed semicolons, adjusted indentation, and updated function syntax to use destructuring in arrow function. |
src/components/ui/Heading/Heading.tsx |
Updated syntax, adjusted formatting, and made minor semantic modifications for better readability. |
src/components/ui/Link/Link.tsx |
Updated formatting and fixed handling of the alt prop. |
src/components/ui/Modal/Modal.tsx |
Reformatted import statements, updated ModalProps type declaration, and modified Modal component function for better readability and structure. |
(Not included as changes are primarily formatting and minor adjustments without affecting the control flow.)
Here's a tune from a code-happy bunny,
We've tidied the scripts, now doesn't it look sunny? 🐇
With quotes and commas, we made them align,
Each line's a little clearer, like a fresh-pressed rhyme. 🎨✨
So let's rejoice, in our code’s neat attire,
It's crisp and clean, ready to inspire! 🚀
Thank you for using CodeRabbit. We offer it for free to the OSS community and would appreciate your support in helping us grow. If you find it useful, would you consider giving us a shout-out on your favorite social media?
This would fix the linter issues
Summary by CodeRabbit
Chores
#!/usr/bin/env sh
and commented out directnpm run lint
execution."prepare": "husky install"
script inpackage.json
.Style
New Features
Button
component to include anonClick
event handler in its props.Link
component to handlealt
prop correctly.