Skip to content
This repository was archived by the owner on Sep 19, 2022. It is now read-only.

Commit 443afa1

Browse files
committed
Add depcheck, remove unused and add missing dependencies
1 parent 7a7baf0 commit 443afa1

4 files changed

Lines changed: 752 additions & 9331 deletions

File tree

.depcheckrc.json

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
{
2+
"ignorePatterns": [".yarn", ".next", "out"],
3+
"ignores": [
4+
"@microsoft/eslint-formatter-sarif",
5+
"jest-environment-jsdom",
6+
7+
"assets",
8+
"components",
9+
"containers",
10+
"content",
11+
"contracts",
12+
"hoc",
13+
"hooks",
14+
"i18n",
15+
"lib",
16+
"mutations",
17+
"queries",
18+
"sections",
19+
"store",
20+
"styles",
21+
"test-utils",
22+
"translations",
23+
"utils"
24+
]
25+
}

next.config.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ module.exports = withPlugins([withBundleAnalyzer], {
4343

4444
config.module.rules.push({
4545
test: /\.svg$/,
46-
use: '@svgr/webpack',
46+
use: require.resolve('@svgr/webpack'),
4747
});
4848

4949
config.module.rules.push({

package.json

Lines changed: 14 additions & 26 deletions
Original file line numberDiff line numberDiff line change
@@ -17,29 +17,25 @@
1717
"lint:fix": "eslint . --ext ts,.tsx --fix",
1818
"test": "NODE_ENV=test jest",
1919
"test:unit": "yarn test",
20-
"test:synpress:run": "env-cmd -f .env.local synpress run",
21-
"test:synpress:open": "env-cmd -f .env.local synpress open",
22-
"test:e2e": "start-server-and-test 'yarn build && yarn start' http-get://localhost:3000 'synpress run'",
23-
"test:e2e:ci": "synpress run --group smoke-tests --record --parallel",
2420
"upgrade-synthetix": "yarn up $(./scripts/resolve-synthetix-versions.js latest) --exact",
2521
"upgrade-synthetix:dev": "yarn up $(./scripts/resolve-synthetix-versions.js dev) --exact",
26-
"upgrade-browsers": "yarn up caniuse-lite --recursive"
22+
"upgrade-browsers": "yarn up caniuse-lite --recursive",
23+
"deps": "depcheck --config=.depcheckrc.json"
2724
},
2825
"dependencies": {
2926
"@artsy/fresnel": "^1.8.0",
3027
"@reach/dialog": "^0.15.3",
3128
"@socket.tech/widget": "^0.0.9",
32-
"@synthetixio/assets": "^2.0.13",
3329
"@synthetixio/contracts-interface": "^2.74.3",
3430
"@synthetixio/optimism-networks": "^2.74.2",
3531
"@synthetixio/providers": "^2.74.5",
3632
"@synthetixio/queries": "^2.74.8",
3733
"@synthetixio/transaction-notifier": "^2.74.6",
3834
"@synthetixio/wei": "^2.74.2",
3935
"@tippyjs/react": "^4.1.0",
40-
"@uniswap/router-sdk": "^1.0.5",
41-
"@uniswap/sdk-core": "^3.0.1",
42-
"@uniswap/smart-order-router": "^2.5.13",
36+
"@uniswap/sdk-core": "^3.0.0",
37+
"@uniswap/v3-core": "^1.0.0",
38+
"@uniswap/v3-periphery": "^1.0.0",
4339
"@uniswap/v3-sdk": "^3.6.3",
4440
"@web3-onboard/coinbase": "^2.0.9",
4541
"@web3-onboard/core": "^2.5.0",
@@ -48,14 +44,11 @@
4844
"@web3-onboard/ledger": "^2.1.6",
4945
"@web3-onboard/portis": "^2.0.6",
5046
"@web3-onboard/torus": "^2.0.7",
51-
"@web3-onboard/trezor": "^2.1.6",
5247
"@web3-onboard/walletconnect": "^2.0.7",
5348
"axios": "^0.21.1",
54-
"bignumber.js": "^9.0.0",
5549
"color": "^3.1.3",
5650
"date-fns": "^2.15.0",
5751
"ethers": "^5.5.3",
58-
"graphql": "^15.5.0",
5952
"i18next": "^19.7.0",
6053
"lodash": "^4.17.20",
6154
"next": "^12.2.2",
@@ -79,21 +72,20 @@
7972
"remarkable": "^2.0.1",
8073
"styled-components": "^5.3.5",
8174
"styled-media-query": "^2.1.2",
75+
"synthetix": "^2.0.0",
76+
"tippy.js": "^6.3.1",
8277
"unstated-next": "^1.1.0"
8378
},
8479
"devDependencies": {
8580
"@metamask/providers": "^8.1.1",
8681
"@microsoft/eslint-formatter-sarif": "^3.0.0",
8782
"@next/bundle-analyzer": "^10.2.3",
8883
"@svgr/webpack": "^6.2.1",
89-
"@synthetixio/synpress": "^1.1.1",
9084
"@testing-library/jest-dom": "^5.16.4",
9185
"@testing-library/react": "^12.1.5",
92-
"@testing-library/react-hooks": "^8.0.1",
9386
"@testing-library/user-event": "^14.2.1",
9487
"@types/color": "^3.0.1",
9588
"@types/date-fns": "^2.6.0",
96-
"@types/jest": "^28.1.4",
9789
"@types/lodash": "^4.14.159",
9890
"@types/node": "^14.0.13",
9991
"@types/react": "^17.0.2",
@@ -110,29 +102,25 @@
110102
"@types/styled-components": "^5.1.2",
111103
"@typescript-eslint/eslint-plugin": "^5.28.0",
112104
"@typescript-eslint/parser": "^5.28.0",
113-
"browserslist": "^4.20.4",
114-
"caniuse-lite": "^1.0.30001364",
115-
"csvtojson": "^2.0.10",
116-
"env-cmd": "^10.1.0",
105+
"depcheck": "^1.4.3",
117106
"eslint": "^8.22.0",
118107
"eslint-plugin-import": "^2.23.2",
119108
"eslint-plugin-react": "^7.30.1",
120109
"eslint-plugin-react-hooks": "^4.6.0",
121110
"ethereum-blockies-base64": "^1.0.2",
122-
"file-loader": "^6.2.0",
123-
"graph-results-pager": "^1.0.3",
124111
"husky": "^8.0.1",
125112
"jest": "^28.1.2",
126-
"jest-environment-jsdom": "^28.1.2",
113+
"jest-environment-jsdom": "^28.1.3",
127114
"lint-staged": "^13.0.2",
128115
"prettier": "^2.7.1",
129-
"react-test-renderer": "^17.0.2",
130116
"remarkable-external-link": "^1.1.0",
131-
"typescript": "^4.7.4",
132-
"url-loader": "^4.1.1"
117+
"typescript": "^4.7.4"
133118
},
134119
"resolutions": {
135-
"eslint-plugin-prettier": "^4.0.0",
120+
"synthetix": "^2.0.0",
121+
"@uniswap/sdk-core": "^3.0.0",
122+
"@uniswap/v3-core": "^1.0.0",
123+
"@uniswap/v3-periphery": "^1.0.0",
136124
"ethers": "^5.6.4",
137125
"sharp": "0.29.3",
138126
"browserslist": "^4.20.4",

0 commit comments

Comments
 (0)