Skip to content

chore(eslint): enforce consistent-type-imports across react-components packages#35966

Draft
Copilot wants to merge 1 commit intomasterfrom
copilot/enforce-consistent-type-imports
Draft

chore(eslint): enforce consistent-type-imports across react-components packages#35966
Copilot wants to merge 1 commit intomasterfrom
copilot/enforce-consistent-type-imports

Conversation

Copy link
Copy Markdown
Contributor

Copilot AI commented Apr 9, 2026

Enables @typescript-eslint/consistent-type-imports for all **/*.{ts,tsx} files under the vNext ESLint config, ensuring type-only imports always use import type. Auto-fixed ~1263 files across all tag:vNext packages.

Changes

  • packages/eslint-plugin/src/configs/react/index.js — adds @typescript-eslint/consistent-type-imports rule (prefer: 'type-imports', disallowTypeAnnotations: false) to the **/*.{ts,tsx} block
  • packages/react-components/** and related vNext packages — mass auto-fix converting implicit type imports to explicit import type form

Before / After

// Before
import { ComponentProps, Slot } from '@fluentui/react-utilities';

// After
import type { ComponentProps, Slot } from '@fluentui/react-utilities';

…-fix all vNext packages

Agent-Logs-Url: https://github.com/microsoft/fluentui/sessions/cf4ff664-ec9d-43b5-8d2f-7862d1857a8e

Co-authored-by: dmytrokirpa <1492102+dmytrokirpa@users.noreply.github.com>
@dmytrokirpa dmytrokirpa changed the title feat(eslint): enforce consistent-type-imports across packages/react-components/** chore(eslint): enforce consistent-type-imports across react-components packages Apr 9, 2026
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.

2 participants