Skip to content

RN: Move tools/api to scripts/public-api#51859

Closed
yungsters wants to merge 5 commits into
facebook:mainfrom
yungsters:export-D76091765
Closed

RN: Move tools/api to scripts/public-api#51859
yungsters wants to merge 5 commits into
facebook:mainfrom
yungsters:export-D76091765

Conversation

@yungsters
Copy link
Copy Markdown
Contributor

Summary:
Moves tools/apis to scripts/public-api and cleans up a few things:

  • Clean up the BUCK file a bit.
  • Deduplicate relative paths in scripts.
  • Prefix the private package name with react-native/.

Changelog:
[Internal]

Differential Revision: D76091765

@facebook-github-bot facebook-github-bot added CLA Signed This label is managed by the Facebook bot. Authors need to sign the CLA before a PR can be reviewed. p: Facebook Partner: Facebook Partner labels Jun 6, 2025
@facebook-github-bot
Copy link
Copy Markdown
Contributor

This pull request was exported from Phabricator. Differential Revision: D76091765

@facebook-github-bot
Copy link
Copy Markdown
Contributor

This pull request was exported from Phabricator. Differential Revision: D76091765

@facebook-github-bot
Copy link
Copy Markdown
Contributor

This pull request was exported from Phabricator. Differential Revision: D76091765

yungsters added 5 commits June 9, 2025 20:26
Summary:
Pull Request resolved: facebook#51880

Updates the `sort-imports` lint rule.

The main change is that it enforces newlines after the last import statement.

Changelog:
[Internal]

Reviewed By: SamChou19815

Differential Revision: D76149902
Summary:
Pull Request resolved: facebook#51881

Switches the suppression of ESLint for the generated `sort-imports` lint rule definition to using in-file comments instead of `.eslintignore`.

This makes the suppression more portable. If the path to the lint rule definition changes, we don't have to remember to update `.eslintignore`.

Changelog:
[Internal]

Reviewed By: SamChou19815

Differential Revision: D76152973
Summary:
Pull Request resolved: facebook#51858

Creates a new private package for the ESLint rules that are defined in the `facebook/react-native` repository for linting the monorepo itself: `react-native/eslint-plugin-monorepo`

It resides in a new `private/` directory that will be used for all private packages. I plan to move private packages over from `packages/` and `tools/`.

This also eliminates the need for the `eslint-plugin-lint` dependency in open source.

Changelog:
[Internal]

Reviewed By: cortinico

Differential Revision: D76088698
Summary:
Pull Request resolved: facebook#51863

Standardizes lint severity in `.eslintrc.js` to use the string format.

Changelog:
[Internal]

Reviewed By: cortinico

Differential Revision: D76098593
Summary:
Pull Request resolved: facebook#51859

Moves `tools/apis` to `private/cxx-public-api` and cleans up a few things:

- Clean up the `BUCK` file a bit.
- Deduplicate relative paths in scripts.
- Prefix the private package name with `react-native/`.

Changelog:
[Internal]

Reviewed By: huntie

Differential Revision: D76091765
@facebook-github-bot
Copy link
Copy Markdown
Contributor

This pull request was exported from Phabricator. Differential Revision: D76091765

yungsters added a commit to yungsters/react-native that referenced this pull request Jun 10, 2025
Summary:
Pull Request resolved: facebook#51859

Moves `tools/apis` to `private/cxx-public-api` and cleans up a few things:

- Clean up the `BUCK` file a bit.
- Deduplicate relative paths in scripts.
- Prefix the private package name with `react-native/`.

Changelog:
[Internal]

Reviewed By: huntie

Differential Revision: D76091765
@facebook-github-bot facebook-github-bot added the Merged This PR has been merged. label Jun 10, 2025
@facebook-github-bot
Copy link
Copy Markdown
Contributor

This pull request has been merged in 2a7e37e.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

CLA Signed This label is managed by the Facebook bot. Authors need to sign the CLA before a PR can be reviewed. fb-exported Merged This PR has been merged. p: Facebook Partner: Facebook Partner

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants