shravan20 / flare.ts

A powerful utility library for clean code in js (npm package)
https://shravan20.github.io/flare.ts
MIT License
2 stars 6 forks source link

Commit hooks #9

Closed shravan20 closed 12 months ago

shravan20 commented 1 year ago

Summary by CodeRabbit

coderabbitai[bot] commented 12 months ago

Walkthrough

This pull request introduces changes to the code style rules and adds a new utility function. The code style alterations favor double quotes over single ones and disable several TypeScript-specific linting rules. A new utility function, isAnyPropertyTrue, is introduced in the ArrayUtils module and used in sample.ts.

Changes

File Summary
.prettierrc.js, .eslintrc.json Code style rules have been updated. Double quotes are now preferred over single ones, and several TypeScript-specific linting rules have been disabled.
lib/.../sample.ts A new import statement has been added for the isAnyPropertyTrue function from the ArrayUtils module. This function is then used and its result logged to the console.
lib/utility/ArrayUtils/index.d.ts A new utility function, isAnyPropertyTrue, has been added. It takes an array and a mapper function as arguments, filters out falsy values, and returns the result.

🐇💻

"In the land of code where the shadows lie,

Double quotes rise, while semicolons die.

A function new, truth it does seek,

In the heart of arrays, where secrets may leak.

Celebrate these changes, for they bring us light,

In the endless tunnel of coding night." 🌙✨

Tips ### Chat with CodeRabbit Bot (`@coderabbitai`) - Mention `@coderabbitai` in any *review comment* for bot assistance. The bot stays silent unless called upon. - Note: Review comments are made on code diffs or files, not on the PR overview. ### Pause Incremental Reviews - Insert `@coderabbitai: ignore` in the PR description to halt the bot's ongoing reviews. Remove the line to resume.