Restore eslint path match for assets-registry (fix CI) (#57450)

Summary:
Pull Request resolved: https://github.com/react/react-native/pull/57450

D110053924 removed the ESLint config match for `packages/assets-registry/` a little early — the files still exist and an unused suppression warning causes a failure when run with `--max-warnings 0`.

Revert this to restore stable `test_js` jobs on `main`.

{F1992042843}

Changelog: [Internal]

Reviewed By: Abbondanzo

Differential Revision: D110786490

fbshipit-source-id: cb4a3690deff4e04ade9b8f57c94831f741cb052
This commit is contained in:
Alex Hunt authored and meta-codesync[bot] committed 2026-07-06 11:09:47 -07:00
1 parent 715eeaad69
commit ef37f40e8d
2 files changed
+2 -1

No files matched your search

+1
View File
@@ -50,6 +50,7 @@ module.exports = {
files: [
'./packages/react-native/Libraries/**/*.{js,flow}',
'./packages/react-native/src/**/*.{js,flow}',
'./packages/assets-registry/registry.js',
],
parser: 'hermes-eslint',
rules: {
+1 -1
View File
@@ -22,7 +22,7 @@
const {AssetRegistry} = require('./private/assets/AssetRegistry');
/* eslint-disable @react-native/monorepo/no-commonjs-exports */
// eslint-disable-next-line @react-native/monorepo/no-commonjs-exports
module.exports = {
registerAsset: AssetRegistry.registerAsset,
getAssetByID: AssetRegistry.getAssetByID,