-
-
Notifications
You must be signed in to change notification settings - Fork 1.6k
Expand file tree
/
Copy path.depcheckrc.yml
More file actions
137 lines (127 loc) · 4.08 KB
/
.depcheckrc.yml
File metadata and controls
137 lines (127 loc) · 4.08 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
# List things here that *are - 'used, that depcheck is wrong about'
ignores:
- '@metamask/browser-playground'
- '@metamask/oss-attribution-generator'
- '@metamask/test-dapp-multichain'
- 'webpack-cli'
- '@react-native-community/datetimepicker'
- '@react-native-community/slider'
- 'patch-package'
- '@lavamoat/allow-scripts'
- '@lavamoat/git-safe-dependencies'
- 'babel-plugin-inline-import'
# This is used in index.d.ts
- '@sentry/react'
# These dependencies are needed for react-compiler - https://react.dev/learn/react-compiler#using-react-compiler-with-react-17-or-18
- 'react-compiler-runtime'
# This is used on the patch for TokenRatesController of Assets controllers, for we to be able to use the last version of it
- cockatiel
# This is used for the buffer polyfills
- '@craftzdog/react-native-buffer'
# These are used in metro.config.js to setup Hardened JavaScript via @lavamoat/react-native-lockdown
- '@react-native/js-polyfills'
- 'reflect-metadata'
# Husky is used for pre-commit hooks
- 'husky'
# Auto changelog tooling used in release scripts
- '@metamask/auto-changelog'
# Remove this once it's used in the project
- 'rive-react-native'
# Appwright will be used in a follow up PR. We will remove once PR is ready
- 'appwright'
# Appium drivers are used by Appwright for mobile automation
- 'appium-adb'
- 'appium-chromium-driver'
- 'appium-uiautomator2-driver'
- 'appium-xcuitest-driver'
# ESBuild is used for AI E2E script compilation
- 'esbuild'
- 'esbuild-register'
# xml2js is used in .github/scripts/ for E2E test report processing
- 'xml2js'
# jest-junit is used as a Jest reporter in tests/jest.e2e.detox.config.js
- 'jest-junit'
# tsconfig path alias pointing to app/controllers/perps (not an npm package)
- '@metamask/perps-controller'
# Used in scripts/repack for CI optimization
- '@expo/repack-app'
# ESLint plugins, resolvers, parsers, configuration, etc.
- 'eslint-config-prettier'
- 'eslint-import-resolver-typescript'
- 'eslint-plugin-prettier'
- 'eslint-plugin-react-native'
# Note: Everything below this line should be removed after investigation
# TODO: Investigate each dependency to see whether it's used
## Unused dependencies to investigate
- '@babel/preset-env'
- '@babel/runtime'
- '@metamask/mobile-provider'
- '@testing-library/react'
- '@testing-library/react-hooks'
- '@types/jest'
- '@types/react-native-video'
- 'appium'
- 'assert'
- 'babel-core'
- 'babel-loader'
- 'chromedriver'
- 'execa'
- 'jetifier'
- 'metro-react-native-babel-preset'
- 'react-native-svg-asset-plugin'
- 'regenerator-runtime'
- 'prettier-2'
## Unused devDependencies to investigate
- '@metamask/swappable-obj-proxy'
- '@segment/sovran-react-native'
- '@tradle/react-native-http'
- 'asyncstorage-down'
- 'buffer'
- 'd3-shape'
- 'eciesjs'
- 'eth-block-tracker'
- 'eth-json-rpc-infura'
- 'events'
- 'https-browserify'
- 'path'
- 'pbkdf2'
- 'pify'
- 'punycode'
- 'randomfill'
- 'react-native-aes-crypto'
- 'react-native-aes-crypto-forked'
- 'react-native-crypto'
- 'react-native-level-fs'
- 'react-native-os'
- 'react-native-randombytes'
- 'react-native-swipe-gestures'
- 'socket.io-client'
- 'stream-browserify'
- 'url'
- 'vm-browserify'
- 'react-native-cli'
- 'babel-plugin-module-resolver'
## Missing dependencies to investigate
- '@react-navigation/core'
- 'app'
- 'i18n-js'
- 'images'
## Expo
- '@config-plugins/detox'
- 'cross-spawn'
- 'expo-build-properties'
- 'expo-dev-client'
- 'expo-font'
## react native
- '@react-native-community/cli'
- '@react-native-community/cli-platform-android'
- '@react-native-community/cli-platform-ios'
- '@react-native-community/cli-server-api'
- '@react-native/typescript-config'
- 'react-native-pager-view'
# this dependency can probably be removed, needs investigation
- '@types/react-test-renderer'
# runtime for dependecies using Nitro Modules (@metamask/native-utils)
- 'react-native-nitro-modules'
# Used in Yarn plugin for preview builds
- '@yarnpkg/core'