-
Notifications
You must be signed in to change notification settings - Fork 112
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'main' into fix/FET-1481
- Loading branch information
Showing
47 changed files
with
564 additions
and
2,342 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
name: Knip | ||
|
||
on: [push] | ||
|
||
jobs: | ||
knip: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v3 | ||
|
||
- name: Install pnpm | ||
run: corepack enable pnpm | ||
|
||
- name: Install Node.js | ||
uses: actions/setup-node@v3 | ||
with: | ||
node-version: 18 | ||
cache: 'pnpm' | ||
|
||
- run: pnpm install --frozen-lockfile | ||
|
||
- run: pnpm knip |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,30 @@ | ||
import type { KnipConfig } from 'knip' | ||
|
||
const config: KnipConfig = { | ||
project: ['src/**/*.{js,jsx,ts,tsx,mjs,mts}'], | ||
include: ['files', 'duplicates'], | ||
exclude: ['types', 'exports', 'unlisted'], | ||
next: { | ||
entry: ['next.config.{js,ts,cjs,mjs}', 'src/pages/**/*.{js,jsx,ts,tsx}'], | ||
}, | ||
playwright: { | ||
config: ['playwright.config.{js,ts}'], | ||
entry: ['e2e/**/*.@(spec|test).?(c|m)[jt]s?(x)'], | ||
}, | ||
vitest: { | ||
config: ['vitest.config.{js,mjs,ts,cjs,mts,cts}'], | ||
entry: ['src/**/*.test.{js,ts,jsx,tsx}'], | ||
}, | ||
ignore: [ | ||
// Duplicate exports. Removal is currently blocked due to potential E2E test failures. | ||
'src/transaction-flow/input/EditResolver/EditResolver-flow.tsx', | ||
'src/utils/metamask/firefox.ts', | ||
// We still need the `test-d` files | ||
'src/hooks/ensjs/public/useRecords.test-d.ts', | ||
'src/utils/query/match/matchExactOrNullParamItem.test-d.ts', | ||
'src/utils/query/match/matchQueryKeyMeta.test-d.ts', | ||
'src/utils/query/match/queryKeyToInternalParams.test-d.ts', | ||
], | ||
} | ||
|
||
export default config |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
/* | ||
Cross-Origin-Opener-Policy: same-origin |
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.