-
Notifications
You must be signed in to change notification settings - Fork 0
Upgrade typescript-eslint #528
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 pull request updates several ESLint configurations and dependency versions for TypeScript. The changes adjust rule options (e.g., adding a Changes
Sequence Diagram(s)sequenceDiagram
participant C as Client
participant H as RenderRequestHandler
participant P as prepareResult
participant N as handleNewBundleProvided
C->>H: Send render request
H->>P: await prepareResult(...)
P-->>H: Return result
alt New bundle available
H->>N: await handleNewBundleProvided(...)
N-->>H: Return bundle response
end
H-->>C: Return final response
Poem
Warning Review ran into problems🔥 ProblemsGitHub Actions and Pipeline Checks: Resource not accessible by integration - https://docs.github.com/rest/actions/workflow-runs#list-workflow-runs-for-a-repository. Please grant the required permissions to the CodeRabbit GitHub App under the organization or repository settings. 📜 Recent review detailsConfiguration used: CodeRabbit UI ⛔ Files ignored due to path filters (1)
📒 Files selected for processing (9)
🚧 Files skipped from review as they are similar to previous changes (9)
⏰ Context from checks skipped due to timeout of 90000ms (1)
🪧 TipsChatThere are 3 ways to chat with CodeRabbit:
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 (
|
| log.info('buildVM, bundleFilePathPerTimestamp', bundleFilePathPerTimestamp); | ||
| await buildVM(bundleFilePathPerTimestamp); | ||
| return prepareResult(renderingRequest, bundleFilePathPerTimestamp); | ||
| return await prepareResult(renderingRequest, bundleFilePathPerTimestamp); |
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.
https://typescript-eslint.io/rules/return-await
- Returning an awaited promise improves stack trace information.
- When the return statement is in
try...catch, awaiting the promise allows the promise's rejection to be caught instead of leaving the error to the caller.- Contrary to popular belief,
return await promise;is at least as fast as directly returning the promise.
6d65e3b to
7df2d8a
Compare
Judahmeek
left a comment
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.
Can you explain why you removed so many Promise.resolve calls?
In |
|
@Judahmeek |
Upgrade ESLint and plugins and switch to flat config. Part 2 of #489, needs #528 to be merged. <!-- This is an auto-generated comment: release notes by coderabbit.ai --> ## Summary by CodeRabbit ## Summary by CodeRabbit - **Chores** - Enhanced the linting setup and configurations to improve coding standards and error detection. - Adjusted linting commands to streamline the process. - Updated development dependencies to their latest versions for better performance and consistency. - Upgraded Ruby version across various configuration files to ensure compatibility and improvements. <!-- end of auto-generated comment: release notes by coderabbit.ai --> --------- Co-authored-by: Alexey Romanov <[email protected]>
Upgrade to the current version of
typescript-eslint.Part 1 of #489.
Summary by CodeRabbit
These internal improvements enhance maintainability and performance without altering visible features for end-users.