Skip to content

chore: enable object-shorthand rule #312

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

Merged
merged 1 commit into from
Jun 11, 2025

Conversation

araujogui
Copy link
Member

@Copilot Copilot AI review requested due to automatic review settings June 10, 2025 12:44
@araujogui araujogui requested a review from a team as a code owner June 10, 2025 12:44
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 enforces consistent usage of object shorthand syntax by updating the code to comply with the object-shorthand rule. It refactors object properties to use the shorthand notation and enables the corresponding ESLint rule across the project.

  • Updated src/linter/reporters/index.mjs to use shorthand properties for module exports.
  • Enabled the object-shorthand rule in eslint.config.mjs and applied shorthand syntax in plugin configuration.

Reviewed Changes

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

File Description
src/linter/reporters/index.mjs Refactored object properties to shorthand syntax.
eslint.config.mjs Added the object-shorthand rule and updated plugin configuration syntax.

Copy link

codecov bot commented Jun 10, 2025

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 48.90%. Comparing base (276687e) to head (ed1c49b).
Report is 1 commits behind head on main.

✅ All tests successful. No failed tests found.

Additional details and impacted files
@@           Coverage Diff           @@
##             main     #312   +/-   ##
=======================================
  Coverage   48.90%   48.90%           
=======================================
  Files          82       82           
  Lines        6825     6825           
  Branches      277      277           
=======================================
  Hits         3338     3338           
  Misses       3484     3484           
  Partials        3        3           

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

@araujogui araujogui merged commit 2f57187 into nodejs:main Jun 11, 2025
9 checks passed
@araujogui araujogui deleted the chore/object-shorthand branch June 11, 2025 14:41
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.

5 participants