-
Notifications
You must be signed in to change notification settings - Fork 25
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #712 from BoltzExchange/lazy-loading
Lazy loading
- Loading branch information
Showing
113 changed files
with
2,812 additions
and
2,286 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 |
---|---|---|
|
@@ -16,6 +16,8 @@ jobs: | |
|
||
- run: npm ci | ||
|
||
- run: npm run lint | ||
|
||
- run: npm run prettier:check | ||
|
||
- run: npm run test | ||
|
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,87 @@ | ||
import pluginJs from "@eslint/js"; | ||
import solid from "eslint-plugin-solid"; | ||
import globals from "globals"; | ||
import tseslint from "typescript-eslint"; | ||
|
||
/** @type {import('eslint').Linter.Config[]} */ | ||
export default [ | ||
{ files: ["**/*.{js,mjs,cjs,ts,tsx}"] }, | ||
{ languageOptions: { globals: globals.browser } }, | ||
{ | ||
ignores: [ | ||
"dist", | ||
"regtest", | ||
"coverage", | ||
"node_modules", | ||
"dnssec-prover", | ||
"jest.config.js", | ||
"babel.config.js", | ||
"vite.config.mjs", | ||
"src/utils/dnssec/dnssec_prover*", | ||
], | ||
}, | ||
pluginJs.configs.recommended, | ||
...tseslint.configs.recommendedTypeChecked, | ||
solid.configs["flat/typescript"], | ||
{ | ||
languageOptions: { | ||
parserOptions: { | ||
projectService: { | ||
defaultProject: "tsconfig.json", | ||
allowDefaultProject: ["public/*.js", "*.mjs"], | ||
}, | ||
tsconfigRootDir: import.meta.dirname, | ||
}, | ||
}, | ||
}, | ||
{ | ||
rules: { | ||
"no-async-promise-executor": "off", | ||
}, | ||
}, | ||
{ | ||
rules: { | ||
"no-restricted-imports": [ | ||
"error", | ||
{ | ||
patterns: [ | ||
{ | ||
message: "It is a heavy dependency", | ||
group: [ | ||
"boltz-bolt12", | ||
"@trezor/connect", | ||
"@trezor/connect-web", | ||
"@ledgerhq/hw-app-eth", | ||
"@ledgerhq/hw-transport", | ||
"@ledgerhq/hw-transport-webhid", | ||
"@vulpemventures/secp256k1-zkp", | ||
], | ||
}, | ||
], | ||
}, | ||
], | ||
}, | ||
}, | ||
{ | ||
files: ["*/lazy/**"], | ||
rules: { | ||
"no-restricted-imports": "off", | ||
}, | ||
}, | ||
{ | ||
rules: { | ||
"require-await": "error", | ||
"@typescript-eslint/no-floating-promises": "error", | ||
|
||
"@typescript-eslint/no-unsafe-call": "off", | ||
"@typescript-eslint/only-throw-error": "off", | ||
"@typescript-eslint/no-unsafe-argument": "off", | ||
"@typescript-eslint/no-misused-promises": "off", | ||
"@typescript-eslint/no-unsafe-assignment": "off", | ||
"@typescript-eslint/no-unsafe-member-access": "off", | ||
"@typescript-eslint/no-unsafe-enum-comparison": "off", | ||
"@typescript-eslint/prefer-promise-reject-errors": "off", | ||
"@typescript-eslint/no-unnecessary-type-assertion": "off", | ||
}, | ||
}, | ||
]; |
Oops, something went wrong.