Skip to content

Commit ef37f40

Browse files
huntiemeta-codesync[bot]
authored andcommitted
Restore eslint path match for assets-registry (fix CI) (#57450)
Summary: Pull Request resolved: #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
1 parent 715eeaa commit ef37f40

2 files changed

Lines changed: 2 additions & 1 deletion

File tree

.eslintrc.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -50,6 +50,7 @@ module.exports = {
5050
files: [
5151
'./packages/react-native/Libraries/**/*.{js,flow}',
5252
'./packages/react-native/src/**/*.{js,flow}',
53+
'./packages/assets-registry/registry.js',
5354
],
5455
parser: 'hermes-eslint',
5556
rules: {

packages/react-native/src/asset-registry.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@
2222

2323
const {AssetRegistry} = require('./private/assets/AssetRegistry');
2424

25-
/* eslint-disable @react-native/monorepo/no-commonjs-exports */
25+
// eslint-disable-next-line @react-native/monorepo/no-commonjs-exports
2626
module.exports = {
2727
registerAsset: AssetRegistry.registerAsset,
2828
getAssetByID: AssetRegistry.getAssetByID,

0 commit comments

Comments
 (0)