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

feat: add eslint-plugin-jest-dom #13392

Merged
merged 6 commits into from
Mar 30, 2023

Conversation

falsepopsky
Copy link
Contributor

Closes #13312

I added the dependency eslint-plugin-jest-dom and enabled the recommended configuration by default. I also fixed a ton of errors resulting from this change.

Changelog

New

  • add eslint-plugin-jest-dom

Changed

  • fixed eslint errors in tests

Removed

  • {{removed thing}}

Testing / Reviewing

Make sure there are no errors when running lint, and that the tests pass successfully.

@falsepopsky falsepopsky requested a review from a team as a code owner March 23, 2023 00:31
@netlify
Copy link

netlify bot commented Mar 23, 2023

Deploy Preview for carbon-components-react ready!

Built without sensitive environment variables

Name Link
🔨 Latest commit a3a3dbf
🔍 Latest deploy log https://app.netlify.com/sites/carbon-components-react/deploys/6425fce613e01c000817a41c
😎 Deploy Preview https://deploy-preview-13392--carbon-components-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 settings.

@netlify
Copy link

netlify bot commented Mar 23, 2023

Deploy Preview for carbon-elements ready!

Name Link
🔨 Latest commit a3a3dbf
🔍 Latest deploy log https://app.netlify.com/sites/carbon-elements/deploys/6425fce682692a000820265b
😎 Deploy Preview https://deploy-preview-13392--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 settings.

@falsepopsky

This comment was marked as outdated.

@tay1orjones tay1orjones requested a review from tw15egan March 23, 2023 16:14
@falsepopsky

This comment was marked as outdated.

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.

Hey this looks really fantastic! Thanks for fixing all the associated errors.

I do think your suggestion is a good idea - let's move that, but otherwise I think this looks good to go since CI is passing 🎉

config/eslint-config-carbon/plugins/jest.js Outdated Show resolved Hide resolved
@falsepopsky falsepopsky requested review from tay1orjones and removed request for tw15egan and aledavila March 29, 2023 15:55
@sstrubberg
Copy link
Member

Hey @falsepopsky! thanks for the contribution. Curious if you are an IBMer or if you are using Carbon externally for a project. Let us know!

@falsepopsky
Copy link
Contributor Author

falsepopsky commented Mar 30, 2023

@sstrubberg

Hi!. I'm not an IBMer but I have used Carbon in the past. I mostly use icons or pictograms package. Have a great day!


@tay1orjones

maybe i will take a look at #9048 later

@kodiakhq kodiakhq bot merged commit 9bff488 into carbon-design-system:main Mar 30, 2023
@falsepopsky falsepopsky deleted the feature/eslint branch March 30, 2023 21:58
tw15egan pushed a commit to tw15egan/carbon that referenced this pull request Mar 31, 2023
* feat: add eslint-plugin-jest-dom

* fix: eslint errors

* fix(rebase): eslint, tests

* fix: lint jest-dom config only test files

---------

Co-authored-by: Alessandra Davila <adavila91@gmail.com>
Co-authored-by: kodiakhq[bot] <49736102+kodiakhq[bot]@users.noreply.github.com>
tw15egan pushed a commit to tw15egan/carbon that referenced this pull request Mar 31, 2023
* feat: add eslint-plugin-jest-dom

* fix: eslint errors

* fix(rebase): eslint, tests

* fix: lint jest-dom config only test files

---------

Co-authored-by: Alessandra Davila <adavila91@gmail.com>
Co-authored-by: kodiakhq[bot] <49736102+kodiakhq[bot]@users.noreply.github.com>
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.

Add the eslint-plugin-jest-dom package to our eslint config
4 participants