Skip to content

fix: yarn config#200

Merged
kostyamospan merged 1 commit intomainfrom
fix/yarn-config
Apr 1, 2026
Merged

fix: yarn config#200
kostyamospan merged 1 commit intomainfrom
fix/yarn-config

Conversation

@kostyamospan
Copy link
Copy Markdown
Collaborator

No description provided.

Copy link
Copy Markdown

@gemini-code-assist gemini-code-assist bot left a comment

Choose a reason for hiding this comment

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

Code Review

This pull request modifies the .yarnrc.yml configuration by reordering existing settings and introducing a 7-day age gate for npm packages. Feedback highlights that disabling scripts will prevent the automatic setup of Husky git hooks, which may disrupt the development workflow unless manually documented. Additionally, the 10080-minute age gate is flagged as overly restrictive, as it could delay the adoption of critical security patches; a shorter window of 24 to 48 hours is recommended instead.

defaultSemverRangePrefix: ''

nodeLinker: node-modules
enableScripts: false
Copy link
Copy Markdown

Choose a reason for hiding this comment

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

medium

Setting enableScripts: false disables the postinstall script in package.json, which prevents husky from automatically setting up git hooks for developers. This means the precommit hook (which runs codestyle) will not be initialized on fresh installs. If this is a deliberate security choice, consider documenting a manual setup step for contributors (e.g., running yarn husky manually).

nodeLinker: node-modules

enableScripts: false
npmMinimalAgeGate: 10080
Copy link
Copy Markdown

Choose a reason for hiding this comment

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

medium

An npmMinimalAgeGate of 7 days (10080 minutes) is exceptionally restrictive. While it provides a buffer against malicious new packages, it also prevents the team from installing critical security patches or urgent bug fixes for a full week after their release. A value of 1440 (24 hours) or 2880 (48 hours) is generally recommended to balance security with the ability to respond to vulnerabilities.

npmMinimalAgeGate: 1440

@kostyamospan kostyamospan merged commit 9eeab32 into main Apr 1, 2026
4 checks passed
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