diff --git a/.gitignore b/.gitignore new file mode 100644 index 000000000..fd4f2b066 --- /dev/null +++ b/.gitignore @@ -0,0 +1,2 @@ +node_modules +.DS_Store diff --git a/.prettierrc b/.prettierrc new file mode 100644 index 000000000..2ff708fbf --- /dev/null +++ b/.prettierrc @@ -0,0 +1,10 @@ +{ + "trailingComma": "all", + "useTabs": false, + "printWidth": 80, + "tabWidth": 2, + "arrowParens": "avoid", + "semi": true, + "singleQuote": true, + "bracketSpacing": true +} diff --git a/package.json b/package.json new file mode 100644 index 000000000..a4f53c116 --- /dev/null +++ b/package.json @@ -0,0 +1,18 @@ +{ + "name": "paraswap-dex-lib", + "version": "0.0.1", + "main": "index.js", + "repository": "https://github.com/paraswap/paraswap-dex-lib", + "author": "dev@paraswap.io", + "license": "MIT", + "private": false, + "devDependencies": { + "husky": "7.0.1", + "typescript": "4.3.5" + }, + "husky": { + "hooks": { + "pre-commit": "pretty-quick --staged" + } + } +} diff --git a/tsconfig.json b/tsconfig.json new file mode 100644 index 000000000..45f311051 --- /dev/null +++ b/tsconfig.json @@ -0,0 +1,21 @@ +{ + "compilerOptions": { + "allowSyntheticDefaultImports": true, + "lib": ["es2015"], + "module": "commonjs", + "noImplicitAny": true, + "outDir": "./dist/", + "preserveConstEnums": true, + "removeComments": true, + "strictNullChecks": true, + "sourceMap": true, + "target": "es2015", + "skipLibCheck": true, + "resolveJsonModule": true, + "allowJs": true, + "experimentalDecorators": true, + "emitDecoratorMetadata": true, + "typeRoots": ["node_modules/@types"] + }, + "include": ["src/**/*"] +} diff --git a/yarn.lock b/yarn.lock new file mode 100644 index 000000000..51175ec1e --- /dev/null +++ b/yarn.lock @@ -0,0 +1,13 @@ +# THIS IS AN AUTOGENERATED FILE. DO NOT EDIT THIS FILE DIRECTLY. +# yarn lockfile v1 + + +husky@7.0.1: + version "7.0.1" + resolved "https://registry.yarnpkg.com/husky/-/husky-7.0.1.tgz#579f4180b5da4520263e8713cc832942b48e1f1c" + integrity sha512-gceRaITVZ+cJH9sNHqx5tFwbzlLCVxtVZcusME8JYQ8Edy5mpGDOqD8QBCdMhpyo9a+JXddnujQ4rpY2Ff9SJA== + +typescript@4.3.5: + version "4.3.5" + resolved "https://registry.yarnpkg.com/typescript/-/typescript-4.3.5.tgz#4d1c37cc16e893973c45a06886b7113234f119f4" + integrity sha512-DqQgihaQ9cUrskJo9kIyW/+g0Vxsk8cDtZ52a3NGh0YNTfpUSArXSohyUGnvbPazEPLu398C0UxmKSOrPumUzA==