Skip to content

Conversation

Xvezda
Copy link
Owner

@Xvezda Xvezda commented Jun 22, 2025

  • Update package.json
  • Misc changes

@Copilot Copilot AI review requested due to automatic review settings June 22, 2025 02:38
Copy link
Contributor

@Copilot Copilot AI left a 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 introduces configuration updates by modifying ESLint rules for undocumented throw statements and throws tag type, while also adjusting package.json scripts and JS project configuration.

  • Updated ESLint rule files to include an explicit break after setting the callback node.
  • Modified package.json to switch to pnpm for linting and building.
  • Revised jsconfig.json to update include/exclude patterns.

Reviewed Changes

Copilot reviewed 4 out of 4 changed files in this pull request and generated no comments.

File Description
src/rules/no-undocumented-throws.js Added a break statement to the switch block.
src/rules/check-throws-tag-type.js Added a break statement similar to the previous file.
package.json Updated scripts and keywords to use pnpm.
jsconfig.json Added include/exclude entries for project config.
Comments suppressed due to low confidence (4)

src/rules/no-undocumented-throws.js:603

  • Verify that the addition of the break statement is consistent with similar control flow patterns in the file and does not alter the intended logic.
          break;

src/rules/check-throws-tag-type.js:677

  • Ensure that the newly inserted break statement aligns with the intended switch control flow and mirrors the structure used in similar cases.
          break;

package.json:18

  • Confirm that switching to pnpm in the prepublish script is supported by the project's tooling and update any related documentation accordingly.
    "prepublish": "pnpm run lint && pnpm run build"

jsconfig.json:114

  • Review the updated include patterns to ensure they accurately cover all required source files and do not unintentionally include extra files.
  "include": ["src/**/*.js", "tests/**/*.js"],

@Xvezda Xvezda merged commit e17f1a3 into master Jun 22, 2025
1 check passed
@Xvezda Xvezda deleted the feature/configs branch June 22, 2025 04:24
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant