Skip to content
This repository has been archived by the owner on Aug 31, 2023. It is now read-only.

fear(rome_js_analyze): useGroupedTypeImport #4413

Merged
merged 1 commit into from
Apr 27, 2023
Merged

fear(rome_js_analyze): useGroupedTypeImport #4413

merged 1 commit into from
Apr 27, 2023

Conversation

Conaclos
Copy link
Contributor

@Conaclos Conaclos commented Apr 27, 2023

Summary

This implements no-import-type-side-effects.

I first named the rule useFactorizedTypeImports, and so finally come back to noImportTypeSideEffects for ease of discovering.

EDIT: renamed to useGroupedTypeImport.

Test Plan

Eslint test included.

Changelog

  • The PR requires a changelog line

Documentation

  • The PR requires documentation
  • I will create a new PR to update the documentation

@netlify
Copy link

netlify bot commented Apr 27, 2023

Deploy Preview for docs-rometools failed.

Built without sensitive environment variables

Name Link
🔨 Latest commit 4b9b85c
🔍 Latest deploy log https://app.netlify.com/sites/docs-rometools/deploys/644ae8e079b6aa0008a66975

@github-actions github-actions bot added A-Diagnostic Area: errors and diagnostics A-Linter Area: linter A-Project Area: project configuration and loading labels Apr 27, 2023
@Conaclos
Copy link
Contributor Author

Note: in my opinion the action is a bit dirty. However, I do not find another way to do that properly: we cannot directly apply mutation on every specifier since one of their ancestor has to be mutated.

Copy link
Contributor

@ematipico ematipico left a comment

Choose a reason for hiding this comment

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

Looks good to me! Thank you!

@Conaclos Conaclos changed the title fear(rome_js_analyze): noImportTypeSideEffects fear(rome_js_analyze): useGroupedTypeImport Apr 27, 2023
@Conaclos Conaclos merged commit 4866e70 into rome:main Apr 27, 2023
12 of 16 checks passed
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
A-Diagnostic Area: errors and diagnostics A-Linter Area: linter A-Project Area: project configuration and loading
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants