Skip to content
This repository has been archived by the owner on Nov 29, 2024. It is now read-only.

Commit

Permalink
wip refactor
Browse files Browse the repository at this point in the history
  • Loading branch information
Andre Meyer committed Oct 4, 2023
1 parent a64954c commit ada6946
Show file tree
Hide file tree
Showing 17 changed files with 153 additions and 1,113 deletions.
3 changes: 2 additions & 1 deletion .eslintrc.cjs
Original file line number Diff line number Diff line change
Expand Up @@ -14,13 +14,14 @@ module.exports = {
ecmaVersion: 'latest',
sourceType: 'module',
tsconfigRootDir: __dirname,
project: ['./tsconfig.json'],
project: ['./use-defi/tsconfig.json', './playground/tsconfig.json'],
},
plugins: ['react-refresh'],
rules: {
'react-refresh/only-export-components': ['warn', { allowConstantExport: true }],
'@typescript-eslint/no-non-null-assertion': 'off',
'@typescript-eslint/no-explicit-any': ['warn'],
'@typescript-eslint/no-unsafe-assignment': 'off',
'@typescript-eslint/no-unnecessary-type-assertion': 'off',
},
};
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
"postinstall": "pnpm generate",
"lint": "pnpm eslint src/*",
"test": "pnpm vitest run --root ./test --config ./vitest.config.ts",
"generate": "npx openapi-typescript https://api.enso.finance/api-json -o src/generated/api.d.ts",
"generate": "npx openapi-typescript https://api.enso.finance/api-json -o use-defi/src/generated/api.d.ts",
"build": "pnpm generate && pnpm build:setup && rollup -c",
"build:setup": "pnpm gts clean && mkdir dist && jq 'del(.scripts) | del(.devDependencies) | del(.private) | del(.pnpm)' package.json > dist/package.json && cp README.md dist/README.md",
"dev": "cd playground && vite dev"
Expand Down
26 changes: 3 additions & 23 deletions playground/tsconfig.json
Original file line number Diff line number Diff line change
@@ -1,35 +1,15 @@
{
"extends": "../tsconfig.json",
"compilerOptions": {
"target": "ES2020",
"useDefineForClassFields": true,
"lib": [
"ES2020",
"DOM",
"DOM.Iterable"
],
"module": "ESNext",
"skipLibCheck": true,
/* Bundler mode */
"moduleResolution": "bundler",
"allowImportingTsExtensions": true,
"resolveJsonModule": true,
"isolatedModules": true,
"noEmit": true,
"jsx": "react-jsx",
/* Linting */
"strict": true,
"noUnusedLocals": true,
"noUnusedParameters": true,
"noFallthroughCasesInSwitch": true,
"paths": {
"@ensofinance/use-defi": [
"../src/index.ts"
"../use-defi/src/index.ts"
]
}
},
"include": [
"src",
"../src/*.ts"
"../use-defi/src"
],
"references": [
{
Expand Down
Loading

0 comments on commit ada6946

Please sign in to comment.