gitcoinco / grants-stack

Round Manager & Grant Explorer & Project Builder of the Grants Protocol
Other
319 stars 158 forks source link

Remove unused files and dependencies #1740

Closed 0xKurt closed 8 months ago

0xKurt commented 1 year ago

They're ununsed files on the clients code base.

The follwing overview created by unimported provides a list of dependencies and files which may be unused. Everything should be double checked before removing.

npx unimported --flow

       summary               unimported v1.24.0 (node)
───────────────────────────────────────────────────────────────────────────────────────────────────────────────
       entry file          : src/index.tsx

       unresolved imports  : 0
       unused dependencies : 19
       unimported files    : 12

─────┬─────────────────────────────────────────────────────────────────────────────────────────────────────────
     │ 19 unused dependencies
─────┼─────────────────────────────────────────────────────────────────────────────────────────────────────────
   1 │ @craco/craco
   2 │ @pinata/sdk
   3 │ @tailwindcss/line-clamp
   4 │ @testing-library/jest-dom
   5 │ @testing-library/react
   6 │ @testing-library/user-event
   7 │ @types/jest
   8 │ @types/react
   9 │ @types/react-dom
  10 │ @types/react-redux
  11 │ assert
  12 │ autoprefixer
  13 │ crypto-browserify
  14 │ https-browserify
  15 │ os-browserify
  16 │ stream-browserify
  17 │ stream-http
  18 │ ts-jest
  19 │ url
─────┴─────────────────────────────────────────────────────────────────────────────────────────────────────────

─────┬─────────────────────────────────────────────────────────────────────────────────────────────────────────
     │ 12 unimported files
─────┼─────────────────────────────────────────────────────────────────────────────────────────────────────────
   1 │ src/components/base/NetworkSelector.tsx
   2 │ src/components/base/TXLoading.tsx
   3 │ src/components/base/WalletDisplay.tsx
   4 │ src/components/icons/Blockchain.tsx
   5 │ src/components/icons/Check.tsx
   6 │ src/components/icons/Download.tsx
   7 │ src/components/icons/Lightning.tsx
   8 │ src/components/icons/Stars.tsx
   9 │ src/components/providers/identity/__mocks__/axios.js
  10 │ src/components/providers/identity/__mocks__/didkit.js
  11 │ src/setupTests.ts
  12 │ src/utils/test_utils.tsx
─────┴─────────────────────────────────────────────────────────────────────────────────────────────────────────
michellema1208 commented 1 year ago

@gravityblast is this still open?