-
Notifications
You must be signed in to change notification settings - Fork 2
feat: use read-env-value #11
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
Conversation
WalkthroughThis update introduces new linting and formatting tools, removes the existing ESLint setup, and transitions the codebase to use OXLint and Prettier for code quality and style enforcement. The testing framework is switched from Egg to Vitest, with updated scripts and dependencies. The pre-commit workflow is enhanced with Husky and lint-staged, and the documentation and code samples are modernized to use ES module syntax. Changes
Sequence Diagram(s)sequenceDiagram
participant Developer
participant Husky
participant lint-staged
participant OXLint
participant Prettier
Developer->>Husky: git commit
Husky->>lint-staged: Run on staged files
lint-staged->>Prettier: Format staged files
lint-staged->>OXLint: Lint staged files
Prettier-->>lint-staged: Formatting complete
OXLint-->>lint-staged: Linting complete
lint-staged-->>Husky: All checks passed
Husky-->>Developer: Commit proceeds
Poem
✨ Finishing Touches
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. 🪧 TipsChatThere are 3 ways to chat with CodeRabbit:
SupportNeed help? Create a ticket on our support page for assistance with any issues or questions. Note: Be mindful of the bot's finite context window. It's strongly recommended to break down tasks such as reading entire modules into smaller chunks. For a focused discussion, use review comments to chat about specific files and their changes, instead of using the PR comments. CodeRabbit Commands (Invoked using PR comments)
Other keywords and placeholders
CodeRabbit Configuration File (
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Pull Request Overview
This PR implements the "read-env-value" package to improve the parsing of environment variables and refactors test cases to utilize the new API from urllib. Key changes include updating environment variable extraction in src/index.ts, refactoring test assertions and import styles in test files, and several formatting and dependency version updates.
Reviewed Changes
Copilot reviewed 17 out of 17 changed files in this pull request and generated 1 comment.
Show a summary per file
| File | Description |
|---|---|
| test/index.test.ts | Refactored import and assertions using request from urllib and adjusted test titles. |
| test/fixtures/cluster.cjs | Improved formatting for better readability. |
| test/fixtures/child.cjs | Enhanced formatting of the HTTP server creation. |
| test/fixtures/before-exit.cjs | Reformatted the HTTP server creation for consistency. |
| src/types.ts | Added oxlint disable comments for explicit any usage on logger methods. |
| src/index.ts | Updated timeout extraction using read-env-value and refined conditional logging. |
| src/exit.ts | Improved error handling in the exit function with clearer error message extraction. |
| package.json | Upgraded dependency versions and updated scripts. |
| .prettierrc, .prettierignore, .oxlintrc.json, .husky/pre-commit, .github/workflows/nodejs.yml | Added and updated configuration files for code formatting, linting, hooks, and CI workflows. |
| .eslintrc | Removed in favor of newer lint configurations. |
| }); | ||
|
|
||
| it('should don\'t print info log', async () => { | ||
| it("should don't print info log", async () => { |
Copilot
AI
May 16, 2025
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
[nitpick] The test description 'should don't print info log' is grammatically awkward; consider using a more correct phrasing such as 'should not print info log'.
| it("should don't print info log", async () => { | |
| it("should not print info log", async () => { |
|
Review the following changes in direct dependencies. Learn more about Socket for GitHub.
|
commit: |
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## master #11 +/- ##
==========================================
- Coverage 93.75% 0.78% -92.97%
==========================================
Files 2 3 +1
Lines 96 127 +31
Branches 30 3 -27
==========================================
- Hits 90 1 -89
- Misses 6 124 +118
- Partials 0 2 +2 ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Actionable comments posted: 0
🔭 Outside diff range comments (1)
src/index.ts (1)
2-108: 💡 Verification agent❓ Verification inconclusive
Add test coverage for new lines
The static analysis tools indicate that several changed lines are not covered by tests, including the environment variable reading, conditional logging blocks, and some error scenarios.
🏁 Script executed:
#!/bin/bash # Check test coverage for the graceful module grep -r "graceful(" --include="*.ts" --include="*.js" test/Length of output: 61
Add unit tests for all new code paths in src/index.ts
Several of the conditionals and event-handlers added in this PR aren’t covered by existing tests. Please add tests to explicitly cover:
- Reading and defaulting of
GRACEFUL_TIMEOUTviaenv()- Logger level overrides when using a custom logger vs.
console- Branches for
logLevel === 'warn'and'error'sigterm: 'always'vs. defaultonceSIGTERM handlers- The
exitcallback invoked with code0on SIGTERM- The
process.once('exit')handler for both success (code 0) and error exit codes- Cluster mode disconnect logic under
cluster.worker- Child‐process
disconnectevent path and thesetImmediateerror logCovering these scenarios will ensure your graceful‐shutdown logic behaves as expected under all combinations of options.
🧰 Tools
🪛 GitHub Check: codecov/patch
[warning] 3-3: src/index.ts#L3
Added line #L3 was not covered by tests
[warning] 38-38: src/index.ts#L38
Added line #L38 was not covered by tests
[warning] 41-43: src/index.ts#L41-L43
Added lines #L41 - L43 were not covered by tests
[warning] 56-61: src/index.ts#L56-L61
Added lines #L56 - L61 were not covered by tests
[warning] 65-67: src/index.ts#L65-L67
Added lines #L65 - L67 were not covered by tests
[warning] 72-74: src/index.ts#L72-L74
Added lines #L72 - L74 were not covered by tests
[warning] 81-83: src/index.ts#L81-L83
Added lines #L81 - L83 were not covered by tests
[warning] 94-97: src/index.ts#L94-L97
Added lines #L94 - L97 were not covered by tests
[warning] 105-108: src/index.ts#L105-L108
Added lines #L105 - L108 were not covered by tests
♻️ Duplicate comments (1)
test/index.test.ts (1)
49-49: Improve grammatical correctness in test description.The test description "should don't print info log" is grammatically awkward.
it("should not print info log", async () => {
🧹 Nitpick comments (4)
src/types.ts (3)
4-5: Suppressno-explicit-anyforwarnmethod
The inline disable allows dynamic logger arguments but weakens type safety. Consider usingunknownor a generic parameter instead ofanyfor stronger typings.
6-7: Suppressno-explicit-anyforinfomethod
Same as above: the disable is necessary under the new lint rules, but you could useunknownor generics for improved type safety.
8-9: Suppressno-explicit-anyforerrormethod
Consistent with other methods, but worth considering a more precise type (e.g.,unknown) or a generic to reduce reliance onany..oxlintrc.json (1)
99-100: Remove commented-out rule.There's a commented rule on line 99 that duplicates the rule on line 92. This creates confusion about which rule should be applied.
- // "unicorn/no-null": "error",🧰 Tools
🪛 Biome (1.9.4)
[error] 100-100: End of file expected
Use an array for a sequence of values:
[1, 2](parse)
[error] 100-100: End of file expected
Use an array for a sequence of values:
[1, 2](parse)
[error] 100-100: End of file expected
Use an array for a sequence of values:
[1, 2](parse)
[error] 100-100: End of file expected
Use an array for a sequence of values:
[1, 2](parse)
📜 Review details
Configuration used: CodeRabbit UI
Review profile: CHILL
Plan: Pro
Cache: Disabled due to data retention organization setting
Knowledge Base: Disabled due to data retention organization setting
📒 Files selected for processing (18)
.eslintrc(0 hunks).github/workflows/nodejs.yml(1 hunks).github/workflows/release.yml(1 hunks).husky/pre-commit(1 hunks).oxlintrc.json(1 hunks).prettierignore(1 hunks).prettierrc(1 hunks)README.md(1 hunks)package.json(1 hunks)src/exit.ts(2 hunks)src/index.ts(4 hunks)src/types.ts(1 hunks)test/fixtures/before-exit.cjs(1 hunks)test/fixtures/child.cjs(1 hunks)test/fixtures/cluster.cjs(2 hunks)test/fixtures/master-spawn.js(1 hunks)test/index.test.ts(11 hunks)tsconfig.json(1 hunks)
💤 Files with no reviewable changes (1)
- .eslintrc
🧰 Additional context used
🧬 Code Graph Analysis (1)
src/exit.ts (1)
src/types.ts (2)
Logger(3-10)BeforeExit(1-1)
🪛 GitHub Check: codecov/patch
src/exit.ts
[warning] 8-13: src/exit.ts#L8-L13
Added lines #L8 - L13 were not covered by tests
[warning] 15-18: src/exit.ts#L15-L18
Added lines #L15 - L18 were not covered by tests
[warning] 43-45: src/exit.ts#L43-L45
Added lines #L43 - L45 were not covered by tests
src/index.ts
[warning] 3-3: src/index.ts#L3
Added line #L3 was not covered by tests
[warning] 38-38: src/index.ts#L38
Added line #L38 was not covered by tests
[warning] 41-43: src/index.ts#L41-L43
Added lines #L41 - L43 were not covered by tests
[warning] 56-61: src/index.ts#L56-L61
Added lines #L56 - L61 were not covered by tests
[warning] 65-67: src/index.ts#L65-L67
Added lines #L65 - L67 were not covered by tests
[warning] 72-74: src/index.ts#L72-L74
Added lines #L72 - L74 were not covered by tests
[warning] 81-83: src/index.ts#L81-L83
Added lines #L81 - L83 were not covered by tests
[warning] 94-97: src/index.ts#L94-L97
Added lines #L94 - L97 were not covered by tests
[warning] 105-108: src/index.ts#L105-L108
Added lines #L105 - L108 were not covered by tests
🪛 Biome (1.9.4)
.oxlintrc.json
[error] 26-26: Expected a property but instead found '// eslint'.
Expected a property here.
(parse)
[error] 27-27: End of file expected
Use an array for a sequence of values: [1, 2]
(parse)
[error] 27-27: End of file expected
Use an array for a sequence of values: [1, 2]
(parse)
[error] 27-27: End of file expected
Use an array for a sequence of values: [1, 2]
(parse)
[error] 27-27: End of file expected
Use an array for a sequence of values: [1, 2]
(parse)
[error] 28-28: End of file expected
Use an array for a sequence of values: [1, 2]
(parse)
[error] 28-28: End of file expected
Use an array for a sequence of values: [1, 2]
(parse)
[error] 28-28: End of file expected
Use an array for a sequence of values: [1, 2]
(parse)
[error] 28-28: End of file expected
Use an array for a sequence of values: [1, 2]
(parse)
[error] 29-29: End of file expected
Use an array for a sequence of values: [1, 2]
(parse)
[error] 29-29: End of file expected
Use an array for a sequence of values: [1, 2]
(parse)
[error] 29-29: End of file expected
Use an array for a sequence of values: [1, 2]
(parse)
[error] 29-29: End of file expected
Use an array for a sequence of values: [1, 2]
(parse)
[error] 30-30: End of file expected
Use an array for a sequence of values: [1, 2]
(parse)
[error] 30-30: End of file expected
Use an array for a sequence of values: [1, 2]
(parse)
[error] 30-30: End of file expected
Use an array for a sequence of values: [1, 2]
(parse)
[error] 30-30: End of file expected
Use an array for a sequence of values: [1, 2]
(parse)
[error] 31-31: End of file expected
Use an array for a sequence of values: [1, 2]
(parse)
[error] 31-31: End of file expected
Use an array for a sequence of values: [1, 2]
(parse)
[error] 31-31: End of file expected
Use an array for a sequence of values: [1, 2]
(parse)
[error] 31-31: End of file expected
Use an array for a sequence of values: [1, 2]
(parse)
[error] 32-32: End of file expected
Use an array for a sequence of values: [1, 2]
(parse)
[error] 32-32: End of file expected
Use an array for a sequence of values: [1, 2]
(parse)
[error] 32-32: End of file expected
Use an array for a sequence of values: [1, 2]
(parse)
[error] 32-32: End of file expected
Use an array for a sequence of values: [1, 2]
(parse)
[error] 33-33: End of file expected
Use an array for a sequence of values: [1, 2]
(parse)
[error] 33-33: End of file expected
Use an array for a sequence of values: [1, 2]
(parse)
[error] 33-33: End of file expected
Use an array for a sequence of values: [1, 2]
(parse)
[error] 33-33: End of file expected
Use an array for a sequence of values: [1, 2]
(parse)
[error] 34-34: End of file expected
Use an array for a sequence of values: [1, 2]
(parse)
[error] 34-34: End of file expected
Use an array for a sequence of values: [1, 2]
(parse)
[error] 34-34: End of file expected
Use an array for a sequence of values: [1, 2]
(parse)
[error] 34-34: End of file expected
Use an array for a sequence of values: [1, 2]
(parse)
[error] 35-35: End of file expected
Use an array for a sequence of values: [1, 2]
(parse)
[error] 35-35: End of file expected
Use an array for a sequence of values: [1, 2]
(parse)
[error] 35-35: End of file expected
Use an array for a sequence of values: [1, 2]
(parse)
[error] 35-35: End of file expected
Use an array for a sequence of values: [1, 2]
(parse)
[error] 36-36: End of file expected
Use an array for a sequence of values: [1, 2]
(parse)
[error] 36-36: End of file expected
Use an array for a sequence of values: [1, 2]
(parse)
[error] 36-36: End of file expected
Use an array for a sequence of values: [1, 2]
(parse)
[error] 36-36: End of file expected
Use an array for a sequence of values: [1, 2]
(parse)
[error] 37-37: End of file expected
Use an array for a sequence of values: [1, 2]
(parse)
[error] 37-37: End of file expected
Use an array for a sequence of values: [1, 2]
(parse)
[error] 37-37: End of file expected
Use an array for a sequence of values: [1, 2]
(parse)
[error] 37-37: End of file expected
Use an array for a sequence of values: [1, 2]
(parse)
[error] 38-38: End of file expected
Use an array for a sequence of values: [1, 2]
(parse)
[error] 38-38: End of file expected
Use an array for a sequence of values: [1, 2]
(parse)
[error] 38-38: End of file expected
Use an array for a sequence of values: [1, 2]
(parse)
[error] 38-38: End of file expected
Use an array for a sequence of values: [1, 2]
(parse)
[error] 39-39: End of file expected
Use an array for a sequence of values: [1, 2]
(parse)
[error] 39-39: End of file expected
Use an array for a sequence of values: [1, 2]
(parse)
[error] 39-39: End of file expected
Use an array for a sequence of values: [1, 2]
(parse)
[error] 39-39: End of file expected
Use an array for a sequence of values: [1, 2]
(parse)
[error] 40-40: End of file expected
Use an array for a sequence of values: [1, 2]
(parse)
[error] 40-40: End of file expected
Use an array for a sequence of values: [1, 2]
(parse)
[error] 40-40: End of file expected
Use an array for a sequence of values: [1, 2]
(parse)
[error] 40-40: End of file expected
Use an array for a sequence of values: [1, 2]
(parse)
[error] 41-41: End of file expected
Use an array for a sequence of values: [1, 2]
(parse)
[error] 41-41: End of file expected
Use an array for a sequence of values: [1, 2]
(parse)
[error] 41-41: End of file expected
Use an array for a sequence of values: [1, 2]
(parse)
[error] 41-41: End of file expected
Use an array for a sequence of values: [1, 2]
(parse)
[error] 42-42: End of file expected
Use an array for a sequence of values: [1, 2]
(parse)
[error] 42-42: End of file expected
Use an array for a sequence of values: [1, 2]
(parse)
[error] 42-42: End of file expected
Use an array for a sequence of values: [1, 2]
(parse)
[error] 42-42: End of file expected
Use an array for a sequence of values: [1, 2]
(parse)
[error] 43-43: End of file expected
Use an array for a sequence of values: [1, 2]
(parse)
[error] 43-43: End of file expected
Use an array for a sequence of values: [1, 2]
(parse)
[error] 43-43: End of file expected
Use an array for a sequence of values: [1, 2]
(parse)
[error] 43-43: End of file expected
Use an array for a sequence of values: [1, 2]
(parse)
[error] 44-44: End of file expected
Use an array for a sequence of values: [1, 2]
(parse)
[error] 44-44: End of file expected
Use an array for a sequence of values: [1, 2]
(parse)
[error] 44-44: End of file expected
Use an array for a sequence of values: [1, 2]
(parse)
[error] 44-44: End of file expected
Use an array for a sequence of values: [1, 2]
(parse)
[error] 45-45: End of file expected
Use an array for a sequence of values: [1, 2]
(parse)
[error] 45-45: End of file expected
Use an array for a sequence of values: [1, 2]
(parse)
[error] 45-45: End of file expected
Use an array for a sequence of values: [1, 2]
(parse)
[error] 45-45: End of file expected
Use an array for a sequence of values: [1, 2]
(parse)
[error] 46-46: End of file expected
Use an array for a sequence of values: [1, 2]
(parse)
[error] 46-46: End of file expected
Use an array for a sequence of values: [1, 2]
(parse)
[error] 46-46: End of file expected
Use an array for a sequence of values: [1, 2]
(parse)
[error] 46-46: End of file expected
Use an array for a sequence of values: [1, 2]
(parse)
[error] 47-47: End of file expected
Use an array for a sequence of values: [1, 2]
(parse)
[error] 47-47: End of file expected
Use an array for a sequence of values: [1, 2]
(parse)
[error] 47-47: End of file expected
Use an array for a sequence of values: [1, 2]
(parse)
[error] 47-47: End of file expected
Use an array for a sequence of values: [1, 2]
(parse)
[error] 48-48: End of file expected
Use an array for a sequence of values: [1, 2]
(parse)
[error] 48-48: End of file expected
Use an array for a sequence of values: [1, 2]
(parse)
[error] 48-48: End of file expected
Use an array for a sequence of values: [1, 2]
(parse)
[error] 48-48: End of file expected
Use an array for a sequence of values: [1, 2]
(parse)
[error] 49-49: End of file expected
Use an array for a sequence of values: [1, 2]
(parse)
[error] 49-49: End of file expected
Use an array for a sequence of values: [1, 2]
(parse)
[error] 49-49: End of file expected
Use an array for a sequence of values: [1, 2]
(parse)
[error] 49-49: End of file expected
Use an array for a sequence of values: [1, 2]
(parse)
[error] 50-50: End of file expected
Use an array for a sequence of values: [1, 2]
(parse)
[error] 50-50: End of file expected
Use an array for a sequence of values: [1, 2]
(parse)
[error] 50-50: End of file expected
Use an array for a sequence of values: [1, 2]
(parse)
[error] 50-50: End of file expected
Use an array for a sequence of values: [1, 2]
(parse)
[error] 51-51: End of file expected
Use an array for a sequence of values: [1, 2]
(parse)
[error] 51-51: End of file expected
Use an array for a sequence of values: [1, 2]
(parse)
[error] 51-51: End of file expected
Use an array for a sequence of values: [1, 2]
(parse)
[error] 51-51: End of file expected
Use an array for a sequence of values: [1, 2]
(parse)
[error] 52-52: End of file expected
Use an array for a sequence of values: [1, 2]
(parse)
[error] 52-52: End of file expected
Use an array for a sequence of values: [1, 2]
(parse)
[error] 52-52: End of file expected
Use an array for a sequence of values: [1, 2]
(parse)
[error] 52-52: End of file expected
Use an array for a sequence of values: [1, 2]
(parse)
[error] 53-53: End of file expected
Use an array for a sequence of values: [1, 2]
(parse)
[error] 53-53: End of file expected
Use an array for a sequence of values: [1, 2]
(parse)
[error] 53-53: End of file expected
Use an array for a sequence of values: [1, 2]
(parse)
[error] 53-53: End of file expected
Use an array for a sequence of values: [1, 2]
(parse)
[error] 54-54: End of file expected
Use an array for a sequence of values: [1, 2]
(parse)
[error] 54-54: End of file expected
Use an array for a sequence of values: [1, 2]
(parse)
[error] 54-54: End of file expected
Use an array for a sequence of values: [1, 2]
(parse)
[error] 54-54: End of file expected
Use an array for a sequence of values: [1, 2]
(parse)
[error] 55-55: End of file expected
Use an array for a sequence of values: [1, 2]
(parse)
[error] 55-55: End of file expected
Use an array for a sequence of values: [1, 2]
(parse)
[error] 55-55: End of file expected
Use an array for a sequence of values: [1, 2]
(parse)
[error] 55-55: End of file expected
Use an array for a sequence of values: [1, 2]
(parse)
[error] 56-56: End of file expected
Use an array for a sequence of values: [1, 2]
(parse)
[error] 56-56: End of file expected
Use an array for a sequence of values: [1, 2]
(parse)
[error] 56-56: End of file expected
Use an array for a sequence of values: [1, 2]
(parse)
[error] 56-56: End of file expected
Use an array for a sequence of values: [1, 2]
(parse)
[error] 57-57: End of file expected
Use an array for a sequence of values: [1, 2]
(parse)
[error] 57-57: End of file expected
Use an array for a sequence of values: [1, 2]
(parse)
[error] 57-57: End of file expected
Use an array for a sequence of values: [1, 2]
(parse)
[error] 57-57: End of file expected
Use an array for a sequence of values: [1, 2]
(parse)
[error] 58-58: End of file expected
Use an array for a sequence of values: [1, 2]
(parse)
[error] 58-58: End of file expected
Use an array for a sequence of values: [1, 2]
(parse)
[error] 58-58: End of file expected
Use an array for a sequence of values: [1, 2]
(parse)
[error] 58-58: End of file expected
Use an array for a sequence of values: [1, 2]
(parse)
[error] 59-59: End of file expected
Use an array for a sequence of values: [1, 2]
(parse)
[error] 59-59: End of file expected
Use an array for a sequence of values: [1, 2]
(parse)
[error] 59-59: End of file expected
Use an array for a sequence of values: [1, 2]
(parse)
[error] 59-59: End of file expected
Use an array for a sequence of values: [1, 2]
(parse)
[error] 60-60: End of file expected
Use an array for a sequence of values: [1, 2]
(parse)
[error] 60-60: End of file expected
Use an array for a sequence of values: [1, 2]
(parse)
[error] 60-60: End of file expected
Use an array for a sequence of values: [1, 2]
(parse)
[error] 60-60: End of file expected
Use an array for a sequence of values: [1, 2]
(parse)
[error] 61-61: End of file expected
Use an array for a sequence of values: [1, 2]
(parse)
[error] 61-61: End of file expected
Use an array for a sequence of values: [1, 2]
(parse)
[error] 61-61: End of file expected
Use an array for a sequence of values: [1, 2]
(parse)
[error] 61-61: End of file expected
Use an array for a sequence of values: [1, 2]
(parse)
[error] 62-62: End of file expected
Use an array for a sequence of values: [1, 2]
(parse)
[error] 62-62: End of file expected
Use an array for a sequence of values: [1, 2]
(parse)
[error] 62-62: End of file expected
Use an array for a sequence of values: [1, 2]
(parse)
[error] 62-62: End of file expected
Use an array for a sequence of values: [1, 2]
(parse)
[error] 63-63: End of file expected
Use an array for a sequence of values: [1, 2]
(parse)
[error] 63-63: End of file expected
Use an array for a sequence of values: [1, 2]
(parse)
[error] 63-63: End of file expected
Use an array for a sequence of values: [1, 2]
(parse)
[error] 63-63: End of file expected
Use an array for a sequence of values: [1, 2]
(parse)
[error] 64-64: End of file expected
Use an array for a sequence of values: [1, 2]
(parse)
[error] 64-64: End of file expected
Use an array for a sequence of values: [1, 2]
(parse)
[error] 64-64: End of file expected
Use an array for a sequence of values: [1, 2]
(parse)
[error] 64-64: End of file expected
Use an array for a sequence of values: [1, 2]
(parse)
[error] 65-65: End of file expected
Use an array for a sequence of values: [1, 2]
(parse)
[error] 65-65: End of file expected
Use an array for a sequence of values: [1, 2]
(parse)
[error] 65-65: End of file expected
Use an array for a sequence of values: [1, 2]
(parse)
[error] 65-65: End of file expected
Use an array for a sequence of values: [1, 2]
(parse)
[error] 66-66: End of file expected
Use an array for a sequence of values: [1, 2]
(parse)
[error] 66-66: End of file expected
Use an array for a sequence of values: [1, 2]
(parse)
[error] 66-66: End of file expected
Use an array for a sequence of values: [1, 2]
(parse)
[error] 66-66: End of file expected
Use an array for a sequence of values: [1, 2]
(parse)
[error] 67-67: End of file expected
Use an array for a sequence of values: [1, 2]
(parse)
[error] 67-67: End of file expected
Use an array for a sequence of values: [1, 2]
(parse)
[error] 67-67: End of file expected
Use an array for a sequence of values: [1, 2]
(parse)
[error] 67-69: End of file expected
Use an array for a sequence of values: [1, 2]
(parse)
[error] 70-70: End of file expected
Use an array for a sequence of values: [1, 2]
(parse)
[error] 70-70: End of file expected
Use an array for a sequence of values: [1, 2]
(parse)
[error] 70-70: End of file expected
Use an array for a sequence of values: [1, 2]
(parse)
[error] 70-70: End of file expected
Use an array for a sequence of values: [1, 2]
(parse)
[error] 71-71: End of file expected
Use an array for a sequence of values: [1, 2]
(parse)
[error] 71-71: End of file expected
Use an array for a sequence of values: [1, 2]
(parse)
[error] 71-71: End of file expected
Use an array for a sequence of values: [1, 2]
(parse)
[error] 71-71: End of file expected
Use an array for a sequence of values: [1, 2]
(parse)
[error] 72-72: End of file expected
Use an array for a sequence of values: [1, 2]
(parse)
[error] 72-72: End of file expected
Use an array for a sequence of values: [1, 2]
(parse)
[error] 72-72: End of file expected
Use an array for a sequence of values: [1, 2]
(parse)
[error] 72-72: End of file expected
Use an array for a sequence of values: [1, 2]
(parse)
[error] 73-73: End of file expected
Use an array for a sequence of values: [1, 2]
(parse)
[error] 73-73: End of file expected
Use an array for a sequence of values: [1, 2]
(parse)
[error] 73-73: End of file expected
Use an array for a sequence of values: [1, 2]
(parse)
[error] 73-73: End of file expected
Use an array for a sequence of values: [1, 2]
(parse)
[error] 74-74: End of file expected
Use an array for a sequence of values: [1, 2]
(parse)
[error] 74-74: End of file expected
Use an array for a sequence of values: [1, 2]
(parse)
[error] 74-74: End of file expected
Use an array for a sequence of values: [1, 2]
(parse)
[error] 74-74: End of file expected
Use an array for a sequence of values: [1, 2]
(parse)
[error] 75-75: End of file expected
Use an array for a sequence of values: [1, 2]
(parse)
[error] 75-75: End of file expected
Use an array for a sequence of values: [1, 2]
(parse)
[error] 75-75: End of file expected
Use an array for a sequence of values: [1, 2]
(parse)
[error] 75-75: End of file expected
Use an array for a sequence of values: [1, 2]
(parse)
[error] 76-76: End of file expected
Use an array for a sequence of values: [1, 2]
(parse)
[error] 76-76: End of file expected
Use an array for a sequence of values: [1, 2]
(parse)
[error] 76-76: End of file expected
Use an array for a sequence of values: [1, 2]
(parse)
[error] 76-76: End of file expected
Use an array for a sequence of values: [1, 2]
(parse)
[error] 77-77: End of file expected
Use an array for a sequence of values: [1, 2]
(parse)
[error] 77-77: End of file expected
Use an array for a sequence of values: [1, 2]
(parse)
[error] 77-77: End of file expected
Use an array for a sequence of values: [1, 2]
(parse)
[error] 77-77: End of file expected
Use an array for a sequence of values: [1, 2]
(parse)
[error] 78-78: End of file expected
Use an array for a sequence of values: [1, 2]
(parse)
[error] 78-78: End of file expected
Use an array for a sequence of values: [1, 2]
(parse)
[error] 78-78: End of file expected
Use an array for a sequence of values: [1, 2]
(parse)
[error] 78-78: End of file expected
Use an array for a sequence of values: [1, 2]
(parse)
[error] 79-79: End of file expected
Use an array for a sequence of values: [1, 2]
(parse)
[error] 79-79: End of file expected
Use an array for a sequence of values: [1, 2]
(parse)
[error] 79-79: End of file expected
Use an array for a sequence of values: [1, 2]
(parse)
[error] 79-81: End of file expected
Use an array for a sequence of values: [1, 2]
(parse)
[error] 82-82: End of file expected
Use an array for a sequence of values: [1, 2]
(parse)
[error] 82-82: End of file expected
Use an array for a sequence of values: [1, 2]
(parse)
[error] 82-82: End of file expected
Use an array for a sequence of values: [1, 2]
(parse)
[error] 82-82: End of file expected
Use an array for a sequence of values: [1, 2]
(parse)
[error] 83-83: End of file expected
Use an array for a sequence of values: [1, 2]
(parse)
[error] 83-83: End of file expected
Use an array for a sequence of values: [1, 2]
(parse)
[error] 83-83: End of file expected
Use an array for a sequence of values: [1, 2]
(parse)
[error] 83-83: End of file expected
Use an array for a sequence of values: [1, 2]
(parse)
[error] 84-84: End of file expected
Use an array for a sequence of values: [1, 2]
(parse)
[error] 84-84: End of file expected
Use an array for a sequence of values: [1, 2]
(parse)
[error] 84-84: End of file expected
Use an array for a sequence of values: [1, 2]
(parse)
[error] 84-84: End of file expected
Use an array for a sequence of values: [1, 2]
(parse)
[error] 85-85: End of file expected
Use an array for a sequence of values: [1, 2]
(parse)
[error] 85-85: End of file expected
Use an array for a sequence of values: [1, 2]
(parse)
[error] 85-85: End of file expected
Use an array for a sequence of values: [1, 2]
(parse)
[error] 85-85: End of file expected
Use an array for a sequence of values: [1, 2]
(parse)
[error] 86-86: End of file expected
Use an array for a sequence of values: [1, 2]
(parse)
[error] 86-86: End of file expected
Use an array for a sequence of values: [1, 2]
(parse)
[error] 86-86: End of file expected
Use an array for a sequence of values: [1, 2]
(parse)
[error] 86-86: End of file expected
Use an array for a sequence of values: [1, 2]
(parse)
[error] 87-87: End of file expected
Use an array for a sequence of values: [1, 2]
(parse)
[error] 87-87: End of file expected
Use an array for a sequence of values: [1, 2]
(parse)
[error] 87-87: End of file expected
Use an array for a sequence of values: [1, 2]
(parse)
[error] 87-87: End of file expected
Use an array for a sequence of values: [1, 2]
(parse)
[error] 88-88: End of file expected
Use an array for a sequence of values: [1, 2]
(parse)
[error] 88-88: End of file expected
Use an array for a sequence of values: [1, 2]
(parse)
[error] 88-88: End of file expected
Use an array for a sequence of values: [1, 2]
(parse)
[error] 88-90: End of file expected
Use an array for a sequence of values: [1, 2]
(parse)
[error] 91-91: End of file expected
Use an array for a sequence of values: [1, 2]
(parse)
[error] 91-91: End of file expected
Use an array for a sequence of values: [1, 2]
(parse)
[error] 91-91: End of file expected
Use an array for a sequence of values: [1, 2]
(parse)
[error] 91-91: End of file expected
Use an array for a sequence of values: [1, 2]
(parse)
[error] 92-92: End of file expected
Use an array for a sequence of values: [1, 2]
(parse)
[error] 92-92: End of file expected
Use an array for a sequence of values: [1, 2]
(parse)
[error] 92-92: End of file expected
Use an array for a sequence of values: [1, 2]
(parse)
[error] 92-92: End of file expected
Use an array for a sequence of values: [1, 2]
(parse)
[error] 93-93: End of file expected
Use an array for a sequence of values: [1, 2]
(parse)
[error] 93-93: End of file expected
Use an array for a sequence of values: [1, 2]
(parse)
[error] 93-93: End of file expected
Use an array for a sequence of values: [1, 2]
(parse)
[error] 93-93: End of file expected
Use an array for a sequence of values: [1, 2]
(parse)
[error] 94-94: End of file expected
Use an array for a sequence of values: [1, 2]
(parse)
[error] 94-94: End of file expected
Use an array for a sequence of values: [1, 2]
(parse)
[error] 94-94: End of file expected
Use an array for a sequence of values: [1, 2]
(parse)
[error] 94-94: End of file expected
Use an array for a sequence of values: [1, 2]
(parse)
[error] 95-95: End of file expected
Use an array for a sequence of values: [1, 2]
(parse)
[error] 95-95: End of file expected
Use an array for a sequence of values: [1, 2]
(parse)
[error] 95-95: End of file expected
Use an array for a sequence of values: [1, 2]
(parse)
[error] 95-95: End of file expected
Use an array for a sequence of values: [1, 2]
(parse)
[error] 96-96: End of file expected
Use an array for a sequence of values: [1, 2]
(parse)
[error] 96-96: End of file expected
Use an array for a sequence of values: [1, 2]
(parse)
[error] 96-96: End of file expected
Use an array for a sequence of values: [1, 2]
(parse)
[error] 96-96: End of file expected
Use an array for a sequence of values: [1, 2]
(parse)
[error] 97-97: End of file expected
Use an array for a sequence of values: [1, 2]
(parse)
[error] 97-97: End of file expected
Use an array for a sequence of values: [1, 2]
(parse)
[error] 97-97: End of file expected
Use an array for a sequence of values: [1, 2]
(parse)
[error] 97-97: End of file expected
Use an array for a sequence of values: [1, 2]
(parse)
[error] 98-98: End of file expected
Use an array for a sequence of values: [1, 2]
(parse)
[error] 98-98: End of file expected
Use an array for a sequence of values: [1, 2]
(parse)
[error] 98-98: End of file expected
Use an array for a sequence of values: [1, 2]
(parse)
[error] 98-99: End of file expected
Use an array for a sequence of values: [1, 2]
(parse)
[error] 100-100: End of file expected
Use an array for a sequence of values: [1, 2]
(parse)
[error] 100-100: End of file expected
Use an array for a sequence of values: [1, 2]
(parse)
[error] 100-100: End of file expected
Use an array for a sequence of values: [1, 2]
(parse)
[error] 100-100: End of file expected
Use an array for a sequence of values: [1, 2]
(parse)
[error] 101-101: End of file expected
Use an array for a sequence of values: [1, 2]
(parse)
[error] 101-101: End of file expected
Use an array for a sequence of values: [1, 2]
(parse)
[error] 101-101: End of file expected
Use an array for a sequence of values: [1, 2]
(parse)
[error] 101-101: End of file expected
Use an array for a sequence of values: [1, 2]
(parse)
[error] 102-102: End of file expected
Use an array for a sequence of values: [1, 2]
(parse)
[error] 102-102: End of file expected
Use an array for a sequence of values: [1, 2]
(parse)
[error] 102-102: End of file expected
Use an array for a sequence of values: [1, 2]
(parse)
[error] 102-102: End of file expected
Use an array for a sequence of values: [1, 2]
(parse)
[error] 103-103: End of file expected
Use an array for a sequence of values: [1, 2]
(parse)
[error] 103-103: End of file expected
Use an array for a sequence of values: [1, 2]
(parse)
[error] 103-103: End of file expected
Use an array for a sequence of values: [1, 2]
(parse)
[error] 103-103: End of file expected
Use an array for a sequence of values: [1, 2]
(parse)
[error] 104-104: End of file expected
Use an array for a sequence of values: [1, 2]
(parse)
[error] 104-104: End of file expected
Use an array for a sequence of values: [1, 2]
(parse)
[error] 104-104: End of file expected
Use an array for a sequence of values: [1, 2]
(parse)
[error] 104-104: End of file expected
Use an array for a sequence of values: [1, 2]
(parse)
[error] 105-105: End of file expected
Use an array for a sequence of values: [1, 2]
(parse)
[error] 105-105: End of file expected
Use an array for a sequence of values: [1, 2]
(parse)
[error] 105-105: End of file expected
Use an array for a sequence of values: [1, 2]
(parse)
[error] 105-105: End of file expected
Use an array for a sequence of values: [1, 2]
(parse)
[error] 106-106: End of file expected
Use an array for a sequence of values: [1, 2]
(parse)
[error] 106-106: End of file expected
Use an array for a sequence of values: [1, 2]
(parse)
[error] 106-106: End of file expected
Use an array for a sequence of values: [1, 2]
(parse)
[error] 106-106: End of file expected
Use an array for a sequence of values: [1, 2]
(parse)
[error] 107-107: End of file expected
Use an array for a sequence of values: [1, 2]
(parse)
[error] 107-107: End of file expected
Use an array for a sequence of values: [1, 2]
(parse)
[error] 107-107: End of file expected
Use an array for a sequence of values: [1, 2]
(parse)
[error] 107-107: End of file expected
Use an array for a sequence of values: [1, 2]
(parse)
[error] 108-108: End of file expected
Use an array for a sequence of values: [1, 2]
(parse)
[error] 108-108: End of file expected
Use an array for a sequence of values: [1, 2]
(parse)
[error] 108-108: End of file expected
Use an array for a sequence of values: [1, 2]
(parse)
[error] 108-108: End of file expected
Use an array for a sequence of values: [1, 2]
(parse)
[error] 109-109: End of file expected
Use an array for a sequence of values: [1, 2]
(parse)
[error] 109-109: End of file expected
Use an array for a sequence of values: [1, 2]
(parse)
[error] 109-109: End of file expected
Use an array for a sequence of values: [1, 2]
(parse)
[error] 109-109: End of file expected
Use an array for a sequence of values: [1, 2]
(parse)
[error] 110-110: End of file expected
Use an array for a sequence of values: [1, 2]
(parse)
[error] 110-110: End of file expected
Use an array for a sequence of values: [1, 2]
(parse)
[error] 110-110: End of file expected
Use an array for a sequence of values: [1, 2]
(parse)
[error] 110-110: End of file expected
Use an array for a sequence of values: [1, 2]
(parse)
[error] 111-111: End of file expected
Use an array for a sequence of values: [1, 2]
(parse)
[error] 111-111: End of file expected
Use an array for a sequence of values: [1, 2]
(parse)
[error] 111-111: End of file expected
Use an array for a sequence of values: [1, 2]
(parse)
[error] 111-111: End of file expected
Use an array for a sequence of values: [1, 2]
(parse)
[error] 112-112: End of file expected
Use an array for a sequence of values: [1, 2]
(parse)
[error] 112-112: End of file expected
Use an array for a sequence of values: [1, 2]
(parse)
[error] 112-112: End of file expected
Use an array for a sequence of values: [1, 2]
(parse)
[error] 112-112: End of file expected
Use an array for a sequence of values: [1, 2]
(parse)
[error] 113-113: End of file expected
Use an array for a sequence of values: [1, 2]
(parse)
[error] 113-113: End of file expected
Use an array for a sequence of values: [1, 2]
(parse)
[error] 113-113: End of file expected
Use an array for a sequence of values: [1, 2]
(parse)
[error] 113-113: End of file expected
Use an array for a sequence of values: [1, 2]
(parse)
[error] 114-114: End of file expected
Use an array for a sequence of values: [1, 2]
(parse)
[error] 114-114: End of file expected
Use an array for a sequence of values: [1, 2]
(parse)
[error] 114-114: End of file expected
Use an array for a sequence of values: [1, 2]
(parse)
[error] 114-116: End of file expected
Use an array for a sequence of values: [1, 2]
(parse)
[error] 117-117: End of file expected
Use an array for a sequence of values: [1, 2]
(parse)
[error] 117-117: End of file expected
Use an array for a sequence of values: [1, 2]
(parse)
[error] 117-117: End of file expected
Use an array for a sequence of values: [1, 2]
(parse)
[error] 117-117: End of file expected
Use an array for a sequence of values: [1, 2]
(parse)
[error] 118-118: End of file expected
Use an array for a sequence of values: [1, 2]
(parse)
[error] 118-118: End of file expected
Use an array for a sequence of values: [1, 2]
(parse)
[error] 118-118: End of file expected
Use an array for a sequence of values: [1, 2]
(parse)
[error] 118-118: End of file expected
Use an array for a sequence of values: [1, 2]
(parse)
[error] 119-119: End of file expected
Use an array for a sequence of values: [1, 2]
(parse)
[error] 119-119: End of file expected
Use an array for a sequence of values: [1, 2]
(parse)
[error] 119-119: End of file expected
Use an array for a sequence of values: [1, 2]
(parse)
[error] 119-119: End of file expected
Use an array for a sequence of values: [1, 2]
(parse)
[error] 120-120: End of file expected
Use an array for a sequence of values: [1, 2]
(parse)
[error] 120-120: End of file expected
Use an array for a sequence of values: [1, 2]
(parse)
[error] 120-120: End of file expected
Use an array for a sequence of values: [1, 2]
(parse)
[error] 120-122: End of file expected
Use an array for a sequence of values: [1, 2]
(parse)
[error] 123-123: End of file expected
Use an array for a sequence of values: [1, 2]
(parse)
[error] 123-123: End of file expected
Use an array for a sequence of values: [1, 2]
(parse)
[error] 123-123: End of file expected
Use an array for a sequence of values: [1, 2]
(parse)
[error] 123-123: End of file expected
Use an array for a sequence of values: [1, 2]
(parse)
[error] 124-124: End of file expected
Use an array for a sequence of values: [1, 2]
(parse)
[error] 124-124: End of file expected
Use an array for a sequence of values: [1, 2]
(parse)
[error] 124-124: End of file expected
Use an array for a sequence of values: [1, 2]
(parse)
[error] 124-124: End of file expected
Use an array for a sequence of values: [1, 2]
(parse)
[error] 125-125: End of file expected
Use an array for a sequence of values: [1, 2]
(parse)
[error] 125-125: End of file expected
Use an array for a sequence of values: [1, 2]
(parse)
[error] 125-125: End of file expected
Use an array for a sequence of values: [1, 2]
(parse)
[error] 125-125: End of file expected
Use an array for a sequence of values: [1, 2]
(parse)
[error] 126-126: End of file expected
Use an array for a sequence of values: [1, 2]
(parse)
[error] 126-126: End of file expected
Use an array for a sequence of values: [1, 2]
(parse)
[error] 126-126: End of file expected
Use an array for a sequence of values: [1, 2]
(parse)
[error] 126-126: End of file expected
Use an array for a sequence of values: [1, 2]
(parse)
[error] 127-127: End of file expected
Use an array for a sequence of values: [1, 2]
(parse)
[error] 127-127: End of file expected
Use an array for a sequence of values: [1, 2]
(parse)
[error] 127-127: End of file expected
Use an array for a sequence of values: [1, 2]
(parse)
[error] 127-127: End of file expected
Use an array for a sequence of values: [1, 2]
(parse)
[error] 128-128: End of file expected
Use an array for a sequence of values: [1, 2]
(parse)
[error] 128-128: End of file expected
Use an array for a sequence of values: [1, 2]
(parse)
[error] 128-128: End of file expected
Use an array for a sequence of values: [1, 2]
(parse)
[error] 128-128: End of file expected
Use an array for a sequence of values: [1, 2]
(parse)
[error] 129-129: End of file expected
Use an array for a sequence of values: [1, 2]
(parse)
[error] 129-129: End of file expected
Use an array for a sequence of values: [1, 2]
(parse)
[error] 129-129: End of file expected
Use an array for a sequence of values: [1, 2]
(parse)
[error] 129-129: End of file expected
Use an array for a sequence of values: [1, 2]
(parse)
[error] 130-130: End of file expected
Use an array for a sequence of values: [1, 2]
(parse)
[error] 130-130: End of file expected
Use an array for a sequence of values: [1, 2]
(parse)
[error] 130-130: End of file expected
Use an array for a sequence of values: [1, 2]
(parse)
[error] 130-130: End of file expected
Use an array for a sequence of values: [1, 2]
(parse)
[error] 131-131: End of file expected
Use an array for a sequence of values: [1, 2]
(parse)
[error] 131-131: End of file expected
Use an array for a sequence of values: [1, 2]
(parse)
[error] 131-131: End of file expected
Use an array for a sequence of values: [1, 2]
(parse)
[error] 131-131: End of file expected
Use an array for a sequence of values: [1, 2]
(parse)
[error] 132-132: End of file expected
Use an array for a sequence of values: [1, 2]
(parse)
[error] 132-132: End of file expected
Use an array for a sequence of values: [1, 2]
(parse)
[error] 132-132: End of file expected
Use an array for a sequence of values: [1, 2]
(parse)
[error] 132-132: End of file expected
Use an array for a sequence of values: [1, 2]
(parse)
[error] 133-133: End of file expected
Use an array for a sequence of values: [1, 2]
(parse)
[error] 133-133: End of file expected
Use an array for a sequence of values: [1, 2]
(parse)
[error] 133-133: End of file expected
Use an array for a sequence of values: [1, 2]
(parse)
[error] 133-133: End of file expected
Use an array for a sequence of values: [1, 2]
(parse)
[error] 134-134: End of file expected
Use an array for a sequence of values: [1, 2]
(parse)
[error] 134-134: End of file expected
Use an array for a sequence of values: [1, 2]
(parse)
[error] 134-134: End of file expected
Use an array for a sequence of values: [1, 2]
(parse)
[error] 134-134: End of file expected
Use an array for a sequence of values: [1, 2]
(parse)
[error] 135-135: End of file expected
Use an array for a sequence of values: [1, 2]
(parse)
[error] 135-135: End of file expected
Use an array for a sequence of values: [1, 2]
(parse)
[error] 135-135: End of file expected
Use an array for a sequence of values: [1, 2]
(parse)
[error] 135-137: End of file expected
Use an array for a sequence of values: [1, 2]
(parse)
[error] 138-138: End of file expected
Use an array for a sequence of values: [1, 2]
(parse)
[error] 138-138: End of file expected
Use an array for a sequence of values: [1, 2]
(parse)
[error] 138-138: End of file expected
Use an array for a sequence of values: [1, 2]
(parse)
[error] 138-138: End of file expected
Use an array for a sequence of values: [1, 2]
(parse)
[error] 139-139: End of file expected
Use an array for a sequence of values: [1, 2]
(parse)
[error] 139-139: End of file expected
Use an array for a sequence of values: [1, 2]
(parse)
[error] 139-139: End of file expected
Use an array for a sequence of values: [1, 2]
(parse)
[error] 140-140: End of file expected
Use an array for a sequence of values: [1, 2]
(parse)
[error] 141-141: End of file expected
Use an array for a sequence of values: [1, 2]
(parse)
[error] 141-141: End of file expected
Use an array for a sequence of values: [1, 2]
(parse)
[error] 141-141: End of file expected
Use an array for a sequence of values: [1, 2]
(parse)
[error] 141-142: End of file expected
Use an array for a sequence of values: [1, 2]
(parse)
🔇 Additional comments (38)
.github/workflows/release.yml (1)
5-5: Remove unnecessary spaces in branch array for consistency
This formatting tweak aligns the branch filter with the style used elsewhere (.github/workflows/nodejs.yml). No functional impact.test/fixtures/master-spawn.js (1)
7-7: Standardize argument array formatting
Removing the extra spaces inside[...]conforms to the new Prettier/OXLint rules. Behavior is unchanged..prettierignore (1)
1-2: Add.prettierignoreto exclude non-code files
IgnoringCHANGELOG.mdand__snapshots__prevents unintended formatting changes during staged Prettier runs. This complements the new Prettier configuration.test/fixtures/before-exit.cjs (1)
6-11: Reformat chained HTTP server calls for readability
Breaking the chained calls across lines improves clarity without altering behavior. Conforms to the newly adopted style guidelines.test/fixtures/child.cjs (1)
5-10: Approve formatting changesNo functional changes; the reformatting improves readability by breaking the chained calls into separate lines.
README.md (2)
1-1: Inconsistent PR summary regarding read-env-valueThe PR objectives mention introducing
read-env-value, but this file (and the diff) does not reflect any usage ofread-env-value. Please verify that the intended feature has been correctly implemented and committed.Likely an incorrect or invalid review comment.
20-27: Approve migration to ES module syntaxThe updated documentation correctly reflects ES module usage with
importand modern TypeScript file extension..prettierrc (1)
1-6: Approve Prettier configurationThe Prettier config aligns with project conventions, enforcing single quotes, ES5 trailing commas, 2-space indentation, and concise arrow functions.
.github/workflows/nodejs.yml (2)
5-7: Confirm branch name conventionThe workflow triggers on
master. Ensure the repository still usesmasteras the default branch; otherwise update tomain.
15-15: Approve expanding Node.js version matrixIncluding Node.js 24 ensures testing on the latest LTS; this aligns with the project's CI requirements.
.husky/pre-commit (1)
1-1: Approve pre-commit hook additionRunning
npx lint-stagedenforces formatting and linting before commits, complementing the new tooling setup.tsconfig.json (1)
2-2: LGTM: Simplified TypeScript configThe simplified configuration that extends directly from
@eggjs/tsconfigwithout additional options reduces duplication and relies on the standardized configuration.test/fixtures/cluster.cjs (2)
14-16: Improved readability with multi-line formattingThe console.log statement has been reformatted for better readability without changing functionality.
40-48: Enhanced readability with multi-line method chainingThe HTTP server creation and configuration has been reformatted using proper indentation and line breaks, making the code more readable without changing its functionality.
src/index.ts (9)
2-3: Proper import spacing and organizationClean separation between Node.js built-in imports and third-party imports improves code organization.
🧰 Tools
🪛 GitHub Check: codecov/patch
[warning] 3-3: src/index.ts#L3
Added line #L3 was not covered by tests
41-43: Improved conditional loggingRefactored short-circuit evaluation to explicit if statement for better readability and maintainability.
🧰 Tools
🪛 GitHub Check: codecov/patch
[warning] 41-43: src/index.ts#L41-L43
Added lines #L41 - L43 were not covered by tests
56-61: Improved multi-line log formattingEnhanced readability by properly formatting multi-line log messages with parameters on separate lines.
🧰 Tools
🪛 GitHub Check: codecov/patch
[warning] 56-61: src/index.ts#L56-L61
Added lines #L56 - L61 were not covered by tests
65-67: Consistent logging patternRefactored short-circuit evaluation to explicit if statement, maintaining consistency with the logging pattern used throughout the file.
🧰 Tools
🪛 GitHub Check: codecov/patch
[warning] 65-67: src/index.ts#L65-L67
Added lines #L65 - L67 were not covered by tests
72-74: Consistent logging patternSimilar to previous changes, this maintains consistent logging patterns throughout the codebase.
🧰 Tools
🪛 GitHub Check: codecov/patch
[warning] 72-74: src/index.ts#L72-L74
Added lines #L72 - L74 were not covered by tests
81-83: Improved logging condition checkChanged from short-circuit evaluation to an explicit if statement for better readability and consistency.
🧰 Tools
🪛 GitHub Check: codecov/patch
[warning] 81-83: src/index.ts#L81-L83
Added lines #L81 - L83 were not covered by tests
94-97: Enhanced log message formattingImproved readability of error logging with multi-line formatting that separates the message text from parameters.
🧰 Tools
🪛 GitHub Check: codecov/patch
[warning] 94-97: src/index.ts#L94-L97
Added lines #L94 - L97 were not covered by tests
105-108: Enhanced log message formattingSimilar to previous logging changes, this improves readability through consistent multi-line formatting.
🧰 Tools
🪛 GitHub Check: codecov/patch
[warning] 105-108: src/index.ts#L105-L108
Added lines #L105 - L108 were not covered by tests
38-38:✅ Verification successful
Enhanced environment variable handling
Switched from direct environment variable parsing to using the typed
envfunction fromread-env-value, improving type safety for theGRACEFUL_TIMEOUTvalue.
🏁 Script executed:
#!/bin/bash # Check how GRACEFUL_TIMEOUT is used in tests grep -r "GRACEFUL_TIMEOUT" --include="*.ts" --include="*.js" test/Length of output: 134
🏁 Script executed:
#!/bin/bash # Display the first 200 lines of the test to see how GRACEFUL_TIMEOUT is used sed -n '1,200p' test/index.test.tsLength of output: 7562
🏁 Script executed:
#!/bin/bash # Display lines 1-80 of src/index.ts to inspect how options.timeout is used sed -n '1,80p' src/index.tsLength of output: 2184
Enhanced GRACEFUL_TIMEOUT parsing with typed env
- Replaced manual parsing in
src/index.tswithenv('GRACEFUL_TIMEOUT', 'number', 5000)fromread-env-value.- Verified in
test/index.test.ts(mm(process.env, 'GRACEFUL_TIMEOUT', 1000)) thatenvcorrectly parses"1000"to1000, preserving theexit after 1000mslog in tests.No further changes required.
🧰 Tools
🪛 GitHub Check: codecov/patch
[warning] 38-38: src/index.ts#L38
Added line #L38 was not covered by testssrc/exit.ts (5)
8-13: Improved function signature readabilityThe function signature has been reformatted with parameters on separate lines, enhancing readability for functions with multiple parameters.
🧰 Tools
🪛 GitHub Check: codecov/patch
[warning] 8-13: src/exit.ts#L8-L13
Added lines #L8 - L13 were not covered by tests
15-18: Updated assertion methodChanged from
assert()to the more explicitassert.ok()with the same condition and message, improving code clarity.🧰 Tools
🪛 GitHub Check: codecov/patch
[warning] 15-18: src/exit.ts#L15-L18
Added lines #L15 - L18 were not covered by tests
41-42: Added linter directiveAdded comment to disable the unicorn/no-process-exit linter rule for this specific line, allowing for intentional use of process.exit while acknowledging the linting guideline.
43-45: Enhanced error handlingImproved the error handling by:
- Using the more type-safe
unknowntype for caught errors instead ofany- Adding robust error message extraction that checks if the error is an Error instance
- Safely converting non-Error objects to strings
This change improves type safety and error reporting.
🧰 Tools
🪛 GitHub Check: codecov/patch
[warning] 43-45: src/exit.ts#L43-L45
Added lines #L43 - L45 were not covered by tests
46-47: Consistent linter directiveAdded the same linter directive for the second process.exit call, maintaining consistency with the earlier instance.
test/index.test.ts (4)
6-10: LGTM: Updated imports reflect modern practices.The change from default imports to named imports for
mmand switching to vitest testing framework aligns with the modernization efforts shown in package.json changes.
18-18: Good use of linter directive for explicit any type.The oxlint-disable comment properly addresses the TypeScript strict typing requirement while allowing the necessary flexibility for the
childparameter.
86-87: Appropriate use of @ts-expect-error comments.The added TypeScript error suppression comments before the
child.proc.killcalls correctly handle type errors that would otherwise occur with the child process's type definition.Also applies to: 121-123, 173-175
37-44: Improved code formatting for better readability.The modifications to the
child.expect()call formatting (breaking into multiple lines) improve code readability and maintainability, aligning with modern style practices.Also applies to: 61-68, 89-96, 126-134, 153-156, 178-186
.oxlintrc.json (2)
1-142: Comprehensive linting configuration with JSON comments.The OXLint configuration is well-structured with appropriate rules for a TypeScript Node.js project. It enforces best practices while allowing flexibility where needed.
Note: The static analysis warns about JSON comments, but this is expected as OXLint supports JSONC format (JSON with comments).
🧰 Tools
🪛 Biome (1.9.4)
[error] 26-26: Expected a property but instead found '// eslint'.
Expected a property here.
(parse)
[error] 27-27: End of file expected
Use an array for a sequence of values:
[1, 2](parse)
[error] 27-27: End of file expected
Use an array for a sequence of values:
[1, 2](parse)
[error] 27-27: End of file expected
Use an array for a sequence of values:
[1, 2](parse)
[error] 27-27: End of file expected
Use an array for a sequence of values:
[1, 2](parse)
[error] 28-28: End of file expected
Use an array for a sequence of values:
[1, 2](parse)
[error] 28-28: End of file expected
Use an array for a sequence of values:
[1, 2](parse)
[error] 28-28: End of file expected
Use an array for a sequence of values:
[1, 2](parse)
[error] 28-28: End of file expected
Use an array for a sequence of values:
[1, 2](parse)
[error] 29-29: End of file expected
Use an array for a sequence of values:
[1, 2](parse)
[error] 29-29: End of file expected
Use an array for a sequence of values:
[1, 2](parse)
[error] 29-29: End of file expected
Use an array for a sequence of values:
[1, 2](parse)
[error] 29-29: End of file expected
Use an array for a sequence of values:
[1, 2](parse)
[error] 30-30: End of file expected
Use an array for a sequence of values:
[1, 2](parse)
[error] 30-30: End of file expected
Use an array for a sequence of values:
[1, 2](parse)
[error] 30-30: End of file expected
Use an array for a sequence of values:
[1, 2](parse)
[error] 30-30: End of file expected
Use an array for a sequence of values:
[1, 2](parse)
[error] 31-31: End of file expected
Use an array for a sequence of values:
[1, 2](parse)
[error] 31-31: End of file expected
Use an array for a sequence of values:
[1, 2](parse)
[error] 31-31: End of file expected
Use an array for a sequence of values:
[1, 2](parse)
[error] 31-31: End of file expected
Use an array for a sequence of values:
[1, 2](parse)
[error] 32-32: End of file expected
Use an array for a sequence of values:
[1, 2](parse)
[error] 32-32: End of file expected
Use an array for a sequence of values:
[1, 2](parse)
[error] 32-32: End of file expected
Use an array for a sequence of values:
[1, 2](parse)
[error] 32-32: End of file expected
Use an array for a sequence of values:
[1, 2](parse)
[error] 33-33: End of file expected
Use an array for a sequence of values:
[1, 2](parse)
[error] 33-33: End of file expected
Use an array for a sequence of values:
[1, 2](parse)
[error] 33-33: End of file expected
Use an array for a sequence of values:
[1, 2](parse)
[error] 33-33: End of file expected
Use an array for a sequence of values:
[1, 2](parse)
[error] 34-34: End of file expected
Use an array for a sequence of values:
[1, 2](parse)
[error] 34-34: End of file expected
Use an array for a sequence of values:
[1, 2](parse)
[error] 34-34: End of file expected
Use an array for a sequence of values:
[1, 2](parse)
[error] 34-34: End of file expected
Use an array for a sequence of values:
[1, 2](parse)
[error] 35-35: End of file expected
Use an array for a sequence of values:
[1, 2](parse)
[error] 35-35: End of file expected
Use an array for a sequence of values:
[1, 2](parse)
[error] 35-35: End of file expected
Use an array for a sequence of values:
[1, 2](parse)
[error] 35-35: End of file expected
Use an array for a sequence of values:
[1, 2](parse)
[error] 36-36: End of file expected
Use an array for a sequence of values:
[1, 2](parse)
[error] 36-36: End of file expected
Use an array for a sequence of values:
[1, 2](parse)
[error] 36-36: End of file expected
Use an array for a sequence of values:
[1, 2](parse)
[error] 36-36: End of file expected
Use an array for a sequence of values:
[1, 2](parse)
[error] 37-37: End of file expected
Use an array for a sequence of values:
[1, 2](parse)
[error] 37-37: End of file expected
Use an array for a sequence of values:
[1, 2](parse)
[error] 37-37: End of file expected
Use an array for a sequence of values:
[1, 2](parse)
[error] 37-37: End of file expected
Use an array for a sequence of values:
[1, 2](parse)
[error] 38-38: End of file expected
Use an array for a sequence of values:
[1, 2](parse)
[error] 38-38: End of file expected
Use an array for a sequence of values:
[1, 2](parse)
[error] 38-38: End of file expected
Use an array for a sequence of values:
[1, 2](parse)
[error] 38-38: End of file expected
Use an array for a sequence of values:
[1, 2](parse)
[error] 39-39: End of file expected
Use an array for a sequence of values:
[1, 2](parse)
[error] 39-39: End of file expected
Use an array for a sequence of values:
[1, 2](parse)
[error] 39-39: End of file expected
Use an array for a sequence of values:
[1, 2](parse)
[error] 39-39: End of file expected
Use an array for a sequence of values:
[1, 2](parse)
[error] 40-40: End of file expected
Use an array for a sequence of values:
[1, 2](parse)
[error] 40-40: End of file expected
Use an array for a sequence of values:
[1, 2](parse)
[error] 40-40: End of file expected
Use an array for a sequence of values:
[1, 2](parse)
[error] 40-40: End of file expected
Use an array for a sequence of values:
[1, 2](parse)
[error] 41-41: End of file expected
Use an array for a sequence of values:
[1, 2](parse)
[error] 41-41: End of file expected
Use an array for a sequence of values:
[1, 2](parse)
[error] 41-41: End of file expected
Use an array for a sequence of values:
[1, 2](parse)
[error] 41-41: End of file expected
Use an array for a sequence of values:
[1, 2](parse)
[error] 42-42: End of file expected
Use an array for a sequence of values:
[1, 2](parse)
[error] 42-42: End of file expected
Use an array for a sequence of values:
[1, 2](parse)
[error] 42-42: End of file expected
Use an array for a sequence of values:
[1, 2](parse)
[error] 42-42: End of file expected
Use an array for a sequence of values:
[1, 2](parse)
[error] 43-43: End of file expected
Use an array for a sequence of values:
[1, 2](parse)
[error] 43-43: End of file expected
Use an array for a sequence of values:
[1, 2](parse)
[error] 43-43: End of file expected
Use an array for a sequence of values:
[1, 2](parse)
[error] 43-43: End of file expected
Use an array for a sequence of values:
[1, 2](parse)
[error] 44-44: End of file expected
Use an array for a sequence of values:
[1, 2](parse)
[error] 44-44: End of file expected
Use an array for a sequence of values:
[1, 2](parse)
[error] 44-44: End of file expected
Use an array for a sequence of values:
[1, 2](parse)
[error] 44-44: End of file expected
Use an array for a sequence of values:
[1, 2](parse)
[error] 45-45: End of file expected
Use an array for a sequence of values:
[1, 2](parse)
[error] 45-45: End of file expected
Use an array for a sequence of values:
[1, 2](parse)
[error] 45-45: End of file expected
Use an array for a sequence of values:
[1, 2](parse)
[error] 45-45: End of file expected
Use an array for a sequence of values:
[1, 2](parse)
[error] 46-46: End of file expected
Use an array for a sequence of values:
[1, 2](parse)
[error] 46-46: End of file expected
Use an array for a sequence of values:
[1, 2](parse)
[error] 46-46: End of file expected
Use an array for a sequence of values:
[1, 2](parse)
[error] 46-46: End of file expected
Use an array for a sequence of values:
[1, 2](parse)
[error] 47-47: End of file expected
Use an array for a sequence of values:
[1, 2](parse)
[error] 47-47: End of file expected
Use an array for a sequence of values:
[1, 2](parse)
[error] 47-47: End of file expected
Use an array for a sequence of values:
[1, 2](parse)
[error] 47-47: End of file expected
Use an array for a sequence of values:
[1, 2](parse)
[error] 48-48: End of file expected
Use an array for a sequence of values:
[1, 2](parse)
[error] 48-48: End of file expected
Use an array for a sequence of values:
[1, 2](parse)
[error] 48-48: End of file expected
Use an array for a sequence of values:
[1, 2](parse)
[error] 48-48: End of file expected
Use an array for a sequence of values:
[1, 2](parse)
[error] 49-49: End of file expected
Use an array for a sequence of values:
[1, 2](parse)
[error] 49-49: End of file expected
Use an array for a sequence of values:
[1, 2](parse)
[error] 49-49: End of file expected
Use an array for a sequence of values:
[1, 2](parse)
[error] 49-49: End of file expected
Use an array for a sequence of values:
[1, 2](parse)
[error] 50-50: End of file expected
Use an array for a sequence of values:
[1, 2](parse)
[error] 50-50: End of file expected
Use an array for a sequence of values:
[1, 2](parse)
[error] 50-50: End of file expected
Use an array for a sequence of values:
[1, 2](parse)
[error] 50-50: End of file expected
Use an array for a sequence of values:
[1, 2](parse)
[error] 51-51: End of file expected
Use an array for a sequence of values:
[1, 2](parse)
[error] 51-51: End of file expected
Use an array for a sequence of values:
[1, 2](parse)
[error] 51-51: End of file expected
Use an array for a sequence of values:
[1, 2](parse)
[error] 51-51: End of file expected
Use an array for a sequence of values:
[1, 2](parse)
[error] 52-52: End of file expected
Use an array for a sequence of values:
[1, 2](parse)
[error] 52-52: End of file expected
Use an array for a sequence of values:
[1, 2](parse)
[error] 52-52: End of file expected
Use an array for a sequence of values:
[1, 2](parse)
[error] 52-52: End of file expected
Use an array for a sequence of values:
[1, 2](parse)
[error] 53-53: End of file expected
Use an array for a sequence of values:
[1, 2](parse)
[error] 53-53: End of file expected
Use an array for a sequence of values:
[1, 2](parse)
[error] 53-53: End of file expected
Use an array for a sequence of values:
[1, 2](parse)
[error] 53-53: End of file expected
Use an array for a sequence of values:
[1, 2](parse)
[error] 54-54: End of file expected
Use an array for a sequence of values:
[1, 2](parse)
[error] 54-54: End of file expected
Use an array for a sequence of values:
[1, 2](parse)
[error] 54-54: End of file expected
Use an array for a sequence of values:
[1, 2](parse)
[error] 54-54: End of file expected
Use an array for a sequence of values:
[1, 2](parse)
[error] 55-55: End of file expected
Use an array for a sequence of values:
[1, 2](parse)
[error] 55-55: End of file expected
Use an array for a sequence of values:
[1, 2](parse)
[error] 55-55: End of file expected
Use an array for a sequence of values:
[1, 2](parse)
[error] 55-55: End of file expected
Use an array for a sequence of values:
[1, 2](parse)
[error] 56-56: End of file expected
Use an array for a sequence of values:
[1, 2](parse)
[error] 56-56: End of file expected
Use an array for a sequence of values:
[1, 2](parse)
[error] 56-56: End of file expected
Use an array for a sequence of values:
[1, 2](parse)
[error] 56-56: End of file expected
Use an array for a sequence of values:
[1, 2](parse)
[error] 57-57: End of file expected
Use an array for a sequence of values:
[1, 2](parse)
[error] 57-57: End of file expected
Use an array for a sequence of values:
[1, 2](parse)
[error] 57-57: End of file expected
Use an array for a sequence of values:
[1, 2](parse)
[error] 57-57: End of file expected
Use an array for a sequence of values:
[1, 2](parse)
[error] 58-58: End of file expected
Use an array for a sequence of values:
[1, 2](parse)
[error] 58-58: End of file expected
Use an array for a sequence of values:
[1, 2](parse)
[error] 58-58: End of file expected
Use an array for a sequence of values:
[1, 2](parse)
[error] 58-58: End of file expected
Use an array for a sequence of values:
[1, 2](parse)
[error] 59-59: End of file expected
Use an array for a sequence of values:
[1, 2](parse)
[error] 59-59: End of file expected
Use an array for a sequence of values:
[1, 2](parse)
[error] 59-59: End of file expected
Use an array for a sequence of values:
[1, 2](parse)
[error] 59-59: End of file expected
Use an array for a sequence of values:
[1, 2](parse)
[error] 60-60: End of file expected
Use an array for a sequence of values:
[1, 2](parse)
[error] 60-60: End of file expected
Use an array for a sequence of values:
[1, 2](parse)
[error] 60-60: End of file expected
Use an array for a sequence of values:
[1, 2](parse)
[error] 60-60: End of file expected
Use an array for a sequence of values:
[1, 2](parse)
[error] 61-61: End of file expected
Use an array for a sequence of values:
[1, 2](parse)
[error] 61-61: End of file expected
Use an array for a sequence of values:
[1, 2](parse)
[error] 61-61: End of file expected
Use an array for a sequence of values:
[1, 2](parse)
[error] 61-61: End of file expected
Use an array for a sequence of values:
[1, 2](parse)
[error] 62-62: End of file expected
Use an array for a sequence of values:
[1, 2](parse)
[error] 62-62: End of file expected
Use an array for a sequence of values:
[1, 2](parse)
[error] 62-62: End of file expected
Use an array for a sequence of values:
[1, 2](parse)
[error] 62-62: End of file expected
Use an array for a sequence of values:
[1, 2](parse)
[error] 63-63: End of file expected
Use an array for a sequence of values:
[1, 2](parse)
[error] 63-63: End of file expected
Use an array for a sequence of values:
[1, 2](parse)
[error] 63-63: End of file expected
Use an array for a sequence of values:
[1, 2](parse)
[error] 63-63: End of file expected
Use an array for a sequence of values:
[1, 2](parse)
[error] 64-64: End of file expected
Use an array for a sequence of values:
[1, 2](parse)
[error] 64-64: End of file expected
Use an array for a sequence of values:
[1, 2](parse)
[error] 64-64: End of file expected
Use an array for a sequence of values:
[1, 2](parse)
[error] 64-64: End of file expected
Use an array for a sequence of values:
[1, 2](parse)
[error] 65-65: End of file expected
Use an array for a sequence of values:
[1, 2](parse)
[error] 65-65: End of file expected
Use an array for a sequence of values:
[1, 2](parse)
[error] 65-65: End of file expected
Use an array for a sequence of values:
[1, 2](parse)
[error] 65-65: End of file expected
Use an array for a sequence of values:
[1, 2](parse)
[error] 66-66: End of file expected
Use an array for a sequence of values:
[1, 2](parse)
[error] 66-66: End of file expected
Use an array for a sequence of values:
[1, 2](parse)
[error] 66-66: End of file expected
Use an array for a sequence of values:
[1, 2](parse)
[error] 66-66: End of file expected
Use an array for a sequence of values:
[1, 2](parse)
[error] 67-67: End of file expected
Use an array for a sequence of values:
[1, 2](parse)
[error] 67-67: End of file expected
Use an array for a sequence of values:
[1, 2](parse)
[error] 67-67: End of file expected
Use an array for a sequence of values:
[1, 2](parse)
[error] 67-69: End of file expected
Use an array for a sequence of values:
[1, 2](parse)
[error] 70-70: End of file expected
Use an array for a sequence of values:
[1, 2](parse)
[error] 70-70: End of file expected
Use an array for a sequence of values:
[1, 2](parse)
[error] 70-70: End of file expected
Use an array for a sequence of values:
[1, 2](parse)
[error] 70-70: End of file expected
Use an array for a sequence of values:
[1, 2](parse)
[error] 71-71: End of file expected
Use an array for a sequence of values:
[1, 2](parse)
[error] 71-71: End of file expected
Use an array for a sequence of values:
[1, 2](parse)
[error] 71-71: End of file expected
Use an array for a sequence of values:
[1, 2](parse)
[error] 71-71: End of file expected
Use an array for a sequence of values:
[1, 2](parse)
[error] 72-72: End of file expected
Use an array for a sequence of values:
[1, 2](parse)
[error] 72-72: End of file expected
Use an array for a sequence of values:
[1, 2](parse)
[error] 72-72: End of file expected
Use an array for a sequence of values:
[1, 2](parse)
[error] 72-72: End of file expected
Use an array for a sequence of values:
[1, 2](parse)
[error] 73-73: End of file expected
Use an array for a sequence of values:
[1, 2](parse)
[error] 73-73: End of file expected
Use an array for a sequence of values:
[1, 2](parse)
[error] 73-73: End of file expected
Use an array for a sequence of values:
[1, 2](parse)
[error] 73-73: End of file expected
Use an array for a sequence of values:
[1, 2](parse)
[error] 74-74: End of file expected
Use an array for a sequence of values:
[1, 2](parse)
[error] 74-74: End of file expected
Use an array for a sequence of values:
[1, 2](parse)
[error] 74-74: End of file expected
Use an array for a sequence of values:
[1, 2](parse)
[error] 74-74: End of file expected
Use an array for a sequence of values:
[1, 2](parse)
[error] 75-75: End of file expected
Use an array for a sequence of values:
[1, 2](parse)
[error] 75-75: End of file expected
Use an array for a sequence of values:
[1, 2](parse)
[error] 75-75: End of file expected
Use an array for a sequence of values:
[1, 2](parse)
[error] 75-75: End of file expected
Use an array for a sequence of values:
[1, 2](parse)
[error] 76-76: End of file expected
Use an array for a sequence of values:
[1, 2](parse)
[error] 76-76: End of file expected
Use an array for a sequence of values:
[1, 2](parse)
[error] 76-76: End of file expected
Use an array for a sequence of values:
[1, 2](parse)
[error] 76-76: End of file expected
Use an array for a sequence of values:
[1, 2](parse)
[error] 77-77: End of file expected
Use an array for a sequence of values:
[1, 2](parse)
[error] 77-77: End of file expected
Use an array for a sequence of values:
[1, 2](parse)
[error] 77-77: End of file expected
Use an array for a sequence of values:
[1, 2](parse)
[error] 77-77: End of file expected
Use an array for a sequence of values:
[1, 2](parse)
[error] 78-78: End of file expected
Use an array for a sequence of values:
[1, 2](parse)
[error] 78-78: End of file expected
Use an array for a sequence of values:
[1, 2](parse)
[error] 78-78: End of file expected
Use an array for a sequence of values:
[1, 2](parse)
[error] 78-78: End of file expected
Use an array for a sequence of values:
[1, 2](parse)
[error] 79-79: End of file expected
Use an array for a sequence of values:
[1, 2](parse)
[error] 79-79: End of file expected
Use an array for a sequence of values:
[1, 2](parse)
[error] 79-79: End of file expected
Use an array for a sequence of values:
[1, 2](parse)
[error] 79-81: End of file expected
Use an array for a sequence of values:
[1, 2](parse)
[error] 82-82: End of file expected
Use an array for a sequence of values:
[1, 2](parse)
[error] 82-82: End of file expected
Use an array for a sequence of values:
[1, 2](parse)
[error] 82-82: End of file expected
Use an array for a sequence of values:
[1, 2](parse)
[error] 82-82: End of file expected
Use an array for a sequence of values:
[1, 2](parse)
[error] 83-83: End of file expected
Use an array for a sequence of values:
[1, 2](parse)
[error] 83-83: End of file expected
Use an array for a sequence of values:
[1, 2](parse)
[error] 83-83: End of file expected
Use an array for a sequence of values:
[1, 2](parse)
[error] 83-83: End of file expected
Use an array for a sequence of values:
[1, 2](parse)
[error] 84-84: End of file expected
Use an array for a sequence of values:
[1, 2](parse)
[error] 84-84: End of file expected
Use an array for a sequence of values:
[1, 2](parse)
[error] 84-84: End of file expected
Use an array for a sequence of values:
[1, 2](parse)
[error] 84-84: End of file expected
Use an array for a sequence of values:
[1, 2](parse)
[error] 85-85: End of file expected
Use an array for a sequence of values:
[1, 2](parse)
[error] 85-85: End of file expected
Use an array for a sequence of values:
[1, 2](parse)
[error] 85-85: End of file expected
Use an array for a sequence of values:
[1, 2](parse)
[error] 85-85: End of file expected
Use an array for a sequence of values:
[1, 2](parse)
[error] 86-86: End of file expected
Use an array for a sequence of values:
[1, 2](parse)
[error] 86-86: End of file expected
Use an array for a sequence of values:
[1, 2](parse)
[error] 86-86: End of file expected
Use an array for a sequence of values:
[1, 2](parse)
[error] 86-86: End of file expected
Use an array for a sequence of values:
[1, 2](parse)
[error] 87-87: End of file expected
Use an array for a sequence of values:
[1, 2](parse)
[error] 87-87: End of file expected
Use an array for a sequence of values:
[1, 2](parse)
[error] 87-87: End of file expected
Use an array for a sequence of values:
[1, 2](parse)
[error] 87-87: End of file expected
Use an array for a sequence of values:
[1, 2](parse)
[error] 88-88: End of file expected
Use an array for a sequence of values:
[1, 2](parse)
[error] 88-88: End of file expected
Use an array for a sequence of values:
[1, 2](parse)
[error] 88-88: End of file expected
Use an array for a sequence of values:
[1, 2](parse)
[error] 88-90: End of file expected
Use an array for a sequence of values:
[1, 2](parse)
[error] 91-91: End of file expected
Use an array for a sequence of values:
[1, 2](parse)
[error] 91-91: End of file expected
Use an array for a sequence of values:
[1, 2](parse)
[error] 91-91: End of file expected
Use an array for a sequence of values:
[1, 2](parse)
[error] 91-91: End of file expected
Use an array for a sequence of values:
[1, 2](parse)
[error] 92-92: End of file expected
Use an array for a sequence of values:
[1, 2](parse)
[error] 92-92: End of file expected
Use an array for a sequence of values:
[1, 2](parse)
[error] 92-92: End of file expected
Use an array for a sequence of values:
[1, 2](parse)
[error] 92-92: End of file expected
Use an array for a sequence of values:
[1, 2](parse)
[error] 93-93: End of file expected
Use an array for a sequence of values:
[1, 2](parse)
[error] 93-93: End of file expected
Use an array for a sequence of values:
[1, 2](parse)
[error] 93-93: End of file expected
Use an array for a sequence of values:
[1, 2](parse)
[error] 93-93: End of file expected
Use an array for a sequence of values:
[1, 2](parse)
[error] 94-94: End of file expected
Use an array for a sequence of values:
[1, 2](parse)
[error] 94-94: End of file expected
Use an array for a sequence of values:
[1, 2](parse)
[error] 94-94: End of file expected
Use an array for a sequence of values:
[1, 2](parse)
[error] 94-94: End of file expected
Use an array for a sequence of values:
[1, 2](parse)
[error] 95-95: End of file expected
Use an array for a sequence of values:
[1, 2](parse)
[error] 95-95: End of file expected
Use an array for a sequence of values:
[1, 2](parse)
[error] 95-95: End of file expected
Use an array for a sequence of values:
[1, 2](parse)
[error] 95-95: End of file expected
Use an array for a sequence of values:
[1, 2](parse)
[error] 96-96: End of file expected
Use an array for a sequence of values:
[1, 2](parse)
[error] 96-96: End of file expected
Use an array for a sequence of values:
[1, 2](parse)
[error] 96-96: End of file expected
Use an array for a sequence of values:
[1, 2](parse)
[error] 96-96: End of file expected
Use an array for a sequence of values:
[1, 2](parse)
[error] 97-97: End of file expected
Use an array for a sequence of values:
[1, 2](parse)
[error] 97-97: End of file expected
Use an array for a sequence of values:
[1, 2](parse)
[error] 97-97: End of file expected
Use an array for a sequence of values:
[1, 2](parse)
[error] 97-97: End of file expected
Use an array for a sequence of values:
[1, 2](parse)
[error] 98-98: End of file expected
Use an array for a sequence of values:
[1, 2](parse)
[error] 98-98: End of file expected
Use an array for a sequence of values:
[1, 2](parse)
[error] 98-98: End of file expected
Use an array for a sequence of values:
[1, 2](parse)
[error] 98-99: End of file expected
Use an array for a sequence of values:
[1, 2](parse)
[error] 100-100: End of file expected
Use an array for a sequence of values:
[1, 2](parse)
[error] 100-100: End of file expected
Use an array for a sequence of values:
[1, 2](parse)
[error] 100-100: End of file expected
Use an array for a sequence of values:
[1, 2](parse)
[error] 100-100: End of file expected
Use an array for a sequence of values:
[1, 2](parse)
[error] 101-101: End of file expected
Use an array for a sequence of values:
[1, 2](parse)
[error] 101-101: End of file expected
Use an array for a sequence of values:
[1, 2](parse)
[error] 101-101: End of file expected
Use an array for a sequence of values:
[1, 2](parse)
[error] 101-101: End of file expected
Use an array for a sequence of values:
[1, 2](parse)
[error] 102-102: End of file expected
Use an array for a sequence of values:
[1, 2](parse)
[error] 102-102: End of file expected
Use an array for a sequence of values:
[1, 2](parse)
[error] 102-102: End of file expected
Use an array for a sequence of values:
[1, 2](parse)
[error] 102-102: End of file expected
Use an array for a sequence of values:
[1, 2](parse)
[error] 103-103: End of file expected
Use an array for a sequence of values:
[1, 2](parse)
[error] 103-103: End of file expected
Use an array for a sequence of values:
[1, 2](parse)
[error] 103-103: End of file expected
Use an array for a sequence of values:
[1, 2](parse)
[error] 103-103: End of file expected
Use an array for a sequence of values:
[1, 2](parse)
[error] 104-104: End of file expected
Use an array for a sequence of values:
[1, 2](parse)
[error] 104-104: End of file expected
Use an array for a sequence of values:
[1, 2](parse)
[error] 104-104: End of file expected
Use an array for a sequence of values:
[1, 2](parse)
[error] 104-104: End of file expected
Use an array for a sequence of values:
[1, 2](parse)
[error] 105-105: End of file expected
Use an array for a sequence of values:
[1, 2](parse)
[error] 105-105: End of file expected
Use an array for a sequence of values:
[1, 2](parse)
[error] 105-105: End of file expected
Use an array for a sequence of values:
[1, 2](parse)
[error] 105-105: End of file expected
Use an array for a sequence of values:
[1, 2](parse)
[error] 106-106: End of file expected
Use an array for a sequence of values:
[1, 2](parse)
[error] 106-106: End of file expected
Use an array for a sequence of values:
[1, 2](parse)
[error] 106-106: End of file expected
Use an array for a sequence of values:
[1, 2](parse)
[error] 106-106: End of file expected
Use an array for a sequence of values:
[1, 2](parse)
[error] 107-107: End of file expected
Use an array for a sequence of values:
[1, 2](parse)
[error] 107-107: End of file expected
Use an array for a sequence of values:
[1, 2](parse)
[error] 107-107: End of file expected
Use an array for a sequence of values:
[1, 2](parse)
[error] 107-107: End of file expected
Use an array for a sequence of values:
[1, 2](parse)
[error] 108-108: End of file expected
Use an array for a sequence of values:
[1, 2](parse)
[error] 108-108: End of file expected
Use an array for a sequence of values:
[1, 2](parse)
[error] 108-108: End of file expected
Use an array for a sequence of values:
[1, 2](parse)
[error] 108-108: End of file expected
Use an array for a sequence of values:
[1, 2](parse)
[error] 109-109: End of file expected
Use an array for a sequence of values:
[1, 2](parse)
[error] 109-109: End of file expected
Use an array for a sequence of values:
[1, 2](parse)
[error] 109-109: End of file expected
Use an array for a sequence of values:
[1, 2](parse)
[error] 109-109: End of file expected
Use an array for a sequence of values:
[1, 2](parse)
[error] 110-110: End of file expected
Use an array for a sequence of values:
[1, 2](parse)
[error] 110-110: End of file expected
Use an array for a sequence of values:
[1, 2](parse)
[error] 110-110: End of file expected
Use an array for a sequence of values:
[1, 2](parse)
[error] 110-110: End of file expected
Use an array for a sequence of values:
[1, 2](parse)
[error] 111-111: End of file expected
Use an array for a sequence of values:
[1, 2](parse)
[error] 111-111: End of file expected
Use an array for a sequence of values:
[1, 2](parse)
[error] 111-111: End of file expected
Use an array for a sequence of values:
[1, 2](parse)
[error] 111-111: End of file expected
Use an array for a sequence of values:
[1, 2](parse)
[error] 112-112: End of file expected
Use an array for a sequence of values:
[1, 2](parse)
[error] 112-112: End of file expected
Use an array for a sequence of values:
[1, 2](parse)
[error] 112-112: End of file expected
Use an array for a sequence of values:
[1, 2](parse)
[error] 112-112: End of file expected
Use an array for a sequence of values:
[1, 2](parse)
[error] 113-113: End of file expected
Use an array for a sequence of values:
[1, 2](parse)
[error] 113-113: End of file expected
Use an array for a sequence of values:
[1, 2](parse)
[error] 113-113: End of file expected
Use an array for a sequence of values:
[1, 2](parse)
[error] 113-113: End of file expected
Use an array for a sequence of values:
[1, 2](parse)
[error] 114-114: End of file expected
Use an array for a sequence of values:
[1, 2](parse)
[error] 114-114: End of file expected
Use an array for a sequence of values:
[1, 2](parse)
[error] 114-114: End of file expected
Use an array for a sequence of values:
[1, 2](parse)
[error] 114-116: End of file expected
Use an array for a sequence of values:
[1, 2](parse)
[error] 117-117: End of file expected
Use an array for a sequence of values:
[1, 2](parse)
[error] 117-117: End of file expected
Use an array for a sequence of values:
[1, 2](parse)
[error] 117-117: End of file expected
Use an array for a sequence of values:
[1, 2](parse)
[error] 117-117: End of file expected
Use an array for a sequence of values:
[1, 2](parse)
[error] 118-118: End of file expected
Use an array for a sequence of values:
[1, 2](parse)
[error] 118-118: End of file expected
Use an array for a sequence of values:
[1, 2](parse)
[error] 118-118: End of file expected
Use an array for a sequence of values:
[1, 2](parse)
[error] 118-118: End of file expected
Use an array for a sequence of values:
[1, 2](parse)
[error] 119-119: End of file expected
Use an array for a sequence of values:
[1, 2](parse)
[error] 119-119: End of file expected
Use an array for a sequence of values:
[1, 2](parse)
[error] 119-119: End of file expected
Use an array for a sequence of values:
[1, 2](parse)
[error] 119-119: End of file expected
Use an array for a sequence of values:
[1, 2](parse)
[error] 120-120: End of file expected
Use an array for a sequence of values:
[1, 2](parse)
[error] 120-120: End of file expected
Use an array for a sequence of values:
[1, 2](parse)
[error] 120-120: End of file expected
Use an array for a sequence of values:
[1, 2](parse)
[error] 120-122: End of file expected
Use an array for a sequence of values:
[1, 2](parse)
[error] 123-123: End of file expected
Use an array for a sequence of values:
[1, 2](parse)
[error] 123-123: End of file expected
Use an array for a sequence of values:
[1, 2](parse)
[error] 123-123: End of file expected
Use an array for a sequence of values:
[1, 2](parse)
[error] 123-123: End of file expected
Use an array for a sequence of values:
[1, 2](parse)
[error] 124-124: End of file expected
Use an array for a sequence of values:
[1, 2](parse)
[error] 124-124: End of file expected
Use an array for a sequence of values:
[1, 2](parse)
[error] 124-124: End of file expected
Use an array for a sequence of values:
[1, 2](parse)
[error] 124-124: End of file expected
Use an array for a sequence of values:
[1, 2](parse)
[error] 125-125: End of file expected
Use an array for a sequence of values:
[1, 2](parse)
[error] 125-125: End of file expected
Use an array for a sequence of values:
[1, 2](parse)
[error] 125-125: End of file expected
Use an array for a sequence of values:
[1, 2](parse)
[error] 125-125: End of file expected
Use an array for a sequence of values:
[1, 2](parse)
[error] 126-126: End of file expected
Use an array for a sequence of values:
[1, 2](parse)
[error] 126-126: End of file expected
Use an array for a sequence of values:
[1, 2](parse)
[error] 126-126: End of file expected
Use an array for a sequence of values:
[1, 2](parse)
[error] 126-126: End of file expected
Use an array for a sequence of values:
[1, 2](parse)
[error] 127-127: End of file expected
Use an array for a sequence of values:
[1, 2](parse)
[error] 127-127: End of file expected
Use an array for a sequence of values:
[1, 2](parse)
[error] 127-127: End of file expected
Use an array for a sequence of values:
[1, 2](parse)
[error] 127-127: End of file expected
Use an array for a sequence of values:
[1, 2](parse)
[error] 128-128: End of file expected
Use an array for a sequence of values:
[1, 2](parse)
[error] 128-128: End of file expected
Use an array for a sequence of values:
[1, 2](parse)
[error] 128-128: End of file expected
Use an array for a sequence of values:
[1, 2](parse)
[error] 128-128: End of file expected
Use an array for a sequence of values:
[1, 2](parse)
[error] 129-129: End of file expected
Use an array for a sequence of values:
[1, 2](parse)
[error] 129-129: End of file expected
Use an array for a sequence of values:
[1, 2](parse)
[error] 129-129: End of file expected
Use an array for a sequence of values:
[1, 2](parse)
[error] 129-129: End of file expected
Use an array for a sequence of values:
[1, 2](parse)
[error] 130-130: End of file expected
Use an array for a sequence of values:
[1, 2](parse)
[error] 130-130: End of file expected
Use an array for a sequence of values:
[1, 2](parse)
[error] 130-130: End of file expected
Use an array for a sequence of values:
[1, 2](parse)
[error] 130-130: End of file expected
Use an array for a sequence of values:
[1, 2](parse)
[error] 131-131: End of file expected
Use an array for a sequence of values:
[1, 2](parse)
[error] 131-131: End of file expected
Use an array for a sequence of values:
[1, 2](parse)
[error] 131-131: End of file expected
Use an array for a sequence of values:
[1, 2](parse)
[error] 131-131: End of file expected
Use an array for a sequence of values:
[1, 2](parse)
[error] 132-132: End of file expected
Use an array for a sequence of values:
[1, 2](parse)
[error] 132-132: End of file expected
Use an array for a sequence of values:
[1, 2](parse)
[error] 132-132: End of file expected
Use an array for a sequence of values:
[1, 2](parse)
[error] 132-132: End of file expected
Use an array for a sequence of values:
[1, 2](parse)
[error] 133-133: End of file expected
Use an array for a sequence of values:
[1, 2](parse)
[error] 133-133: End of file expected
Use an array for a sequence of values:
[1, 2](parse)
[error] 133-133: End of file expected
Use an array for a sequence of values:
[1, 2](parse)
[error] 133-133: End of file expected
Use an array for a sequence of values:
[1, 2](parse)
[error] 134-134: End of file expected
Use an array for a sequence of values:
[1, 2](parse)
[error] 134-134: End of file expected
Use an array for a sequence of values:
[1, 2](parse)
[error] 134-134: End of file expected
Use an array for a sequence of values:
[1, 2](parse)
[error] 134-134: End of file expected
Use an array for a sequence of values:
[1, 2](parse)
[error] 135-135: End of file expected
Use an array for a sequence of values:
[1, 2](parse)
[error] 135-135: End of file expected
Use an array for a sequence of values:
[1, 2](parse)
[error] 135-135: End of file expected
Use an array for a sequence of values:
[1, 2](parse)
[error] 135-137: End of file expected
Use an array for a sequence of values:
[1, 2](parse)
[error] 138-138: End of file expected
Use an array for a sequence of values:
[1, 2](parse)
[error] 138-138: End of file expected
Use an array for a sequence of values:
[1, 2](parse)
[error] 138-138: End of file expected
Use an array for a sequence of values:
[1, 2](parse)
[error] 138-138: End of file expected
Use an array for a sequence of values:
[1, 2](parse)
[error] 139-139: End of file expected
Use an array for a sequence of values:
[1, 2](parse)
[error] 139-139: End of file expected
Use an array for a sequence of values:
[1, 2](parse)
[error] 139-139: End of file expected
Use an array for a sequence of values:
[1, 2](parse)
[error] 140-140: End of file expected
Use an array for a sequence of values:
[1, 2](parse)
[error] 141-141: End of file expected
Use an array for a sequence of values:
[1, 2](parse)
[error] 141-141: End of file expected
Use an array for a sequence of values:
[1, 2](parse)
[error] 141-141: End of file expected
Use an array for a sequence of values:
[1, 2](parse)
[error] 141-142: End of file expected
Use an array for a sequence of values:
[1, 2](parse)
130-131: Strict TypeScript configuration may require explicit exceptions.The rule
"typescript/no-explicit-any": "error"is enabled, which is good for code quality but may require more explicit type declarations or disable comments (as used in the test file).Verify that the team is prepared for the stricter typing requirements this will enforce across the codebase.
🧰 Tools
🪛 Biome (1.9.4)
[error] 130-130: End of file expected
Use an array for a sequence of values:
[1, 2](parse)
[error] 130-130: End of file expected
Use an array for a sequence of values:
[1, 2](parse)
[error] 130-130: End of file expected
Use an array for a sequence of values:
[1, 2](parse)
[error] 130-130: End of file expected
Use an array for a sequence of values:
[1, 2](parse)
[error] 131-131: End of file expected
Use an array for a sequence of values:
[1, 2](parse)
[error] 131-131: End of file expected
Use an array for a sequence of values:
[1, 2](parse)
[error] 131-131: End of file expected
Use an array for a sequence of values:
[1, 2](parse)
[error] 131-131: End of file expected
Use an array for a sequence of values:
[1, 2](parse)
package.json (4)
17-19: Added read-env-value dependency as per PR objective.The addition of
read-env-valueas a dependency matches the PR objective to use this package for environment variable handling. The version^1.1.0specified allows for compatible updates.
20-37: Updated development dependencies for modern tooling.The changes to development dependencies modernize the toolchain by:
- Upgrading existing tools like
@arethetypeswrong/cliand@eggjs/tsconfig- Adding new tools like
husky,lint-staged,oxlint, andprettier- Replacing mocha with vitest for testing
These changes align with the overall project modernization.
39-47: Updated scripts to use new tooling.The script changes appropriately replace ESLint with OXLint, integrate vitest for testing, and set up husky for git hooks. The test timeout of 30 seconds (line 41) is reasonable for the integration tests in this project.
48-53: Added lint-staged configuration for pre-commit checks.The lint-staged configuration ensures code consistency by running Prettier and OXLint on staged files before commits, which is a good practice for maintaining code quality.
[skip ci] ## [2.2.0](v2.1.0...v2.2.0) (2025-05-17) ### Features * use read-env-value ([#11](#11)) ([a2aa78a](a2aa78a))
node-modules/read-env-value#2
Summary by CodeRabbit
New Features
Bug Fixes
Refactor
Chores