forked from MetaMask/metamask-extension
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy path.depcheckrc.yml
More file actions
139 lines (135 loc) · 4.74 KB
/
Copy path.depcheckrc.yml
File metadata and controls
139 lines (135 loc) · 4.74 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
138
139
# things that *are* used, that depcheck is wrong about
ignores:
#
# webapp deps
#
- '@lavamoat/snow'
- '@lavamoat/webpack'
- '@lavamoat/allow-scripts'
- '@babel/runtime'
- 'react-compiler-runtime'
- '@fortawesome/fontawesome-free'
- 'punycode'
# peer deps of @mui/material v5; no direct imports in app source (MUI resolves them)
- '@emotion/react'
- '@emotion/styled'
# present for upcoming date-picker migration; not imported yet — depcheck would flag unused
- '@mui/x-date-pickers'
# present for the upcoming Ledger DMK offscreen handler; not imported yet — depcheck would flag unused
- '@ledgerhq/device-management-kit'
- '@ledgerhq/device-transport-kit-web-hid'
- 'rxjs'
#
# dev deps
#
# ESLint import resolvers, referenced by short name in `import-x/resolver`
# settings in .eslintrc.js (`node`, `typescript`) rather than imported
- 'eslint-import-resolver-node'
- 'eslint-import-resolver-typescript'
# invoked as a string transform (`bundler.transform('babelify')`) in the
# ts-migration dashboard build, so depcheck can't see the reference
- 'babelify'
# named as a string in `customSyntax` in stylelint.config.js rather than
# imported, so depcheck can't see the reference
- 'postcss-scss'
# all @types/* packages are imported implicitly by TypeScript
- '@types/*'
# safety fallback for npm lifecycle scripts, not used normally
- '@lavamoat/preinstall-always-fail'
# used in testing + ci
- '@metamask/auto-changelog' # invoked as `auto-changelog`
- '@metamask/browser-playground' # used by MM Connect E2E tests
- '@metamask/forwarder'
- '@metamask/phishing-warning' # statically hosted as part of some e2e tests
- '@metamask/test-dapp'
- '@metamask/test-dapp-multichain'
- '@metamask/test-dapp-solana'
- '@metamask/snap-simple-keyring-site'
- '@metamask/snap-account-abstraction-keyring-site'
- '@metamask/test-snaps'
- '@metamask/design-tokens' # Only imported in index.css
- '@tsconfig/node22' # required dynamically by TS, used in tsconfig.json
- '@sentry/cli' # invoked as `sentry-cli`
- 'chromedriver'
- 'depcheck' # ooo meta
- 'ethers' # ethers @5.7.0 expected by @account-abstraction/contracts, but conflicts with transitive ethers@6.x
- 'geckodriver'
- 'jest'
- 'mocha-junit-reporter'
- 'prettier-plugin-sort-json' # automatically imported by prettier
- 'playwright'
- 'wait-on'
- 'tsx' # used in .devcontainer
- 'tweetnacl' # used by solana-wallet-standard
- 'bs58' # used by solana-wallet-standard
- '@metamask/design-system-shared' # scanned by Tailwind JIT to generate utility classes; dev dependency not imported directly
# storybook
- '@storybook/cli'
- '@storybook/core'
- '@storybook/addon-essentials'
- '@storybook/addon-a11y'
- '@storybook/addon-docs'
- '@storybook/builder-webpack5'
- '@storybook/manager-webpack5'
- '@storybook/react-webpack5'
- 'react-syntax-highlighter'
- 'style-loader'
- 'css-loader'
- 'sass-loader'
- 'resolve-url-loader'
# jest environments
- 'jest-environment-jsdom'
# webpack
- 'webpack-dev-server' # dev tool
- 'html-bundler-webpack-plugin' # build tool
- 'webpack-bundle-analyzer' # build tool
- 'postcss-loader' # build tool
- '@swc/helpers' # build tool
- 'browserslist' # build tool
- 'buffer' # polyfill
- 'crypto-browserify' # polyfill
- 'process' # polyfill
- 'stream-http' # polyfill
- 'json-schema-to-ts' # misc: typescript helper
- 'https-browserify' # polyfill
- 'path-browserify' # polyfill
- 'nyc' # coverage
- 'core-js-pure' # polyfills
- 'react-compiler-webpack' # build tool
- 'thread-loader' # build tool
# babel
- '@babel/plugin-transform-class-properties'
- '@babel/plugin-transform-private-methods'
- '@babel/plugin-transform-private-property-in-object'
- '@babel/plugin-transform-logical-assignment-operators'
- 'babel-plugin-react-compiler'
# used in image optimization script
- 'sharp'
# trezor
- 'ts-mixer'
- '@testing-library/dom'
- 'mini-css-extract-plugin'
- 'webpack-cli'
# preinstalled snaps
- '@metamask/preinstalled-example-snap'
- '@metamask/ens-resolver-snap'
- '@metamask/message-signing-snap'
- '@metamask/account-watcher'
- '@metamask/bitcoin-wallet-snap'
- '@metamask/solana-wallet-snap'
- '@metamask/tron-wallet-snap'
- '@metamask/institutional-wallet-snap'
- '@metamask/gator-permissions-snap'
- '@metamask/permissions-kernel-snap'
# package.json subpath imports
- '#ui'
- '#shared'
# files depcheck should not parse
ignorePatterns:
# seems to incorrectly parse scss @include pragmas?
- '**/*.scss'
# self-contained bundle used for testing
- '**/send-eth-with-private-key-test/web3js.js'
- '**/send-eth-with-private-key-test/ethereumjs-tx.js'
# vendored Yarn plugin bundles
- '.yarn/plugins/**'