Closed zzcr closed 1 day ago
The pull request introduces modifications to two main files: commitlint.config.js
and packages/renderless/src/input/index.ts
. The configuration file now includes a new rule to enforce a maximum length of 150 characters for commit message headers. Additionally, the resizeTextarea
function in the input component has been updated to include a more robust conditional check, ensuring that the textarea
reference exists before executing further logic.
File | Change Summary |
---|---|
commitlint.config.js |
Added a new rule 'header-max-length': [1, 'always', 150] to enforce a maximum commit header length. |
packages/renderless/src/input/index.ts |
Modified the resizeTextarea function to check for the existence of the textarea reference before proceeding. |
commitlint.config.js
for commit message rules, as both involve input components and their styling.bug
🐇 In the land of code, where rules do play,
A header's length is kept at bay.
With checks in place, our text flows free,
In textarea's realm, robust as can be!
Commit with care, let standards shine,
For every message, a limit divine! 🌟
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?
…d forth after configuring the displayOnly attribute
PR
PR Checklist
Please check if your PR fulfills the following requirements:
PR Type
What kind of change does this PR introduce?
What is the current behavior?
Issue Number: N/A
What is the new behavior?
Does this PR introduce a breaking change?
Other information
Summary by CodeRabbit