Skip to content

Story: migrate vNext to remove star exports from public API files (barrel files) #22099

@Hotell

Description

@Hotell

Story 🧚‍♀️

We introduced new lint rule to prevent export * in barrel files (public API) in all vNext packages.

This story tracks progress of applying those autofixes per team owned packages

What needs to be done

NOTE: you can migrate those packages in batches (for your owned packages - no need to do it 1 by 1)

1. run eslint to autofix your barrel file

you have 2 options:

  1. invoke fixes in VScode in package barrel file (src/index.ts)
v9-package-public-api.mov
  1. use CLI
yarn workspace @fluentui/react-<name-of-package> eslint --ext=.ts,.tsx src/index.ts --fix

2. run api extractor to verify if anything changed

yarn workspace @fluentui/react-<name-of-package>  build:local

Packages that needs migration (applying eslint autofix)

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    Status

    Done

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions