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
+12
View File
@@ -189,6 +189,18 @@ export default defineConfig(
*/
ignore: ['^#\/locale\/locales\/.+\/messages'],
}],
'import-x/no-extraneous-dependencies': ['error', {
'whitelist': [
// test files only
'@jest/globals',
// we only use a really simple util from this, and we know it will be present
'expo-modules-core',
// this is a dep for @atproto/api, but we absolutely need them in sync, so just
// rely on the transient version
'@atproto/common-web',
]
}],
'import-x/no-nodejs-modules': 'error',
/**
* TypeScript-specific rules