Add no-extraneous-dependencies and no-nodejs-modules eslint rules (#10151)

This commit is contained in:
Samuel Newman
2026-04-02 08:34:12 -07:00
committed by GitHub
parent eb566c5fcc
commit 68a4d73d61
25 changed files with 66 additions and 72 deletions
+1
View File
@@ -9,6 +9,7 @@ jest.mock('@react-native-async-storage/async-storage', () =>
require('@react-native-async-storage/async-storage/jest/async-storage-mock'),
)
jest.mock('react-native/Libraries/EventEmitter/NativeEventEmitter', () => {
// eslint-disable-next-line import-x/no-nodejs-modules
const {EventEmitter} = require('events')
return {
__esModule: true,