Skip to content
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

fix(eslint-config-carbon): move best-practices.js back to cjs module export #18377

Conversation

matthewgallo
Copy link
Member

Closes #18305

The export in eslint-config-carbon/rules/best-practices.js was changed here to export default {} but no other file in the package or the package.json for this package was changed to ESM.

This should address the errors we're seeing in #18305 and allow ibm-products to move to eslint v9.

Changelog

Changed

  • config/eslint-config-carbon/rules/best-practices.js

Testing / Reviewing

Will verify PR checks in this PR

Copy link

netlify bot commented Jan 17, 2025

Deploy Preview for v11-carbon-web-components ready!

Name Link
🔨 Latest commit 7f9737e
🔍 Latest deploy log https://app.netlify.com/sites/v11-carbon-web-components/deploys/678ac25e88cb31000834d4a8
😎 Deploy Preview https://deploy-preview-18377--v11-carbon-web-components.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify site configuration.

Copy link

netlify bot commented Jan 17, 2025

Deploy Preview for carbon-elements ready!

Name Link
🔨 Latest commit 7f9737e
🔍 Latest deploy log https://app.netlify.com/sites/carbon-elements/deploys/678ac25e87a36b0009b4e407
😎 Deploy Preview https://deploy-preview-18377--carbon-elements.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify site configuration.

Copy link

netlify bot commented Jan 17, 2025

Deploy Preview for v11-carbon-react ready!

Name Link
🔨 Latest commit 7f9737e
🔍 Latest deploy log https://app.netlify.com/sites/v11-carbon-react/deploys/678ac25e44914600085b88bf
😎 Deploy Preview https://deploy-preview-18377--v11-carbon-react.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify site configuration.

@matthewgallo matthewgallo force-pushed the 18305-eslint-config-carbon-cjs-esm-change branch from db34222 to 3ddc41b Compare January 17, 2025 17:08
@matthewgallo matthewgallo changed the title fix(18305): move best-practices.js back to cjs module export fix(eslint-config-carbon): move best-practices.js back to cjs module export Jan 17, 2025
Copy link

codecov bot commented Jan 17, 2025

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 84.17%. Comparing base (3704abf) to head (7f9737e).
Report is 3 commits behind head on main.

Additional details and impacted files
@@           Coverage Diff           @@
##             main   #18377   +/-   ##
=======================================
  Coverage   84.17%   84.17%           
=======================================
  Files         408      408           
  Lines       14435    14435           
  Branches     4660     4694   +34     
=======================================
  Hits        12150    12150           
  Misses       2120     2120           
  Partials      165      165           

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

@matthewgallo matthewgallo marked this pull request as ready for review January 17, 2025 17:35
@matthewgallo matthewgallo requested a review from a team as a code owner January 17, 2025 17:35
Copy link
Member

@tay1orjones tay1orjones left a comment

Choose a reason for hiding this comment

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

I bet this was an errant "find all and replace" because one of the stylelint rules was updated to export default in that PR as part of the stylelint v16 overhaul.

@Gururajj77 Gururajj77 added this pull request to the merge queue Jan 20, 2025
Merged via the queue into carbon-design-system:main with commit f53c551 Jan 20, 2025
37 checks passed
@matthewgallo matthewgallo deleted the 18305-eslint-config-carbon-cjs-esm-change branch January 21, 2025 15:01
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[Bug]: eslint-config-carbon break from version 3.17.1 to 3.18
3 participants