Skip to content

Commit

Permalink
initial commit
Browse files Browse the repository at this point in the history
  • Loading branch information
Kristof Gazso authored and Kristof Gazso committed Apr 10, 2023
0 parents commit c23958c
Show file tree
Hide file tree
Showing 8 changed files with 793 additions and 0 deletions.
45 changes: 45 additions & 0 deletions .eslintrc.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,45 @@
{
"parser": "@typescript-eslint/parser",
"extends": [
"eslint:recommended",
"plugin:@typescript-eslint/recommended",
"plugin:@typescript-eslint/recommended-requiring-type-checking",
"plugin:prettier/recommended"
],
"ignorePatterns": ["package.json"],
"parserOptions": {
"ecmaVersion": 2020,
"sourceType": "module",
"extraFileExtensions": [".json"],
"project": "./tsconfig.json"
},
"rules": {
"strict": ["error", "global"],
"no-console": "warn",
"no-debugger": "error",
"eqeqeq": ["error", "always"],
"no-var": "error",
"prefer-const": "error",
"prefer-template": "error",
"semi": ["error", "never"],
"no-eval": "error",
"no-implicit-globals": "error",
"no-unused-vars": ["warn", { "argsIgnorePattern": "^_" }],
"@typescript-eslint/no-explicit-any": "error",
"@typescript-eslint/no-unsafe-assignment": "error",
"@typescript-eslint/no-unsafe-call": "error",
"@typescript-eslint/no-unsafe-member-access": "error",
"@typescript-eslint/no-unsafe-return": "error",
"@typescript-eslint/strict-boolean-expressions": "error",
"@typescript-eslint/explicit-function-return-type": "error",
"@typescript-eslint/explicit-module-boundary-types": "error",
"@typescript-eslint/no-floating-promises": "error",
"@typescript-eslint/no-unnecessary-type-assertion": "error",
"@typescript-eslint/await-thenable": "error",
"@typescript-eslint/promise-function-async": "error",
"@typescript-eslint/restrict-template-expressions": "error",
"@typescript-eslint/restrict-plus-operands": "error",
"@typescript-eslint/no-misused-promises": "error",
"@typescript-eslint/require-await": "error"
}
}
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
yarn.lock
node_modules
11 changes: 11 additions & 0 deletions .prettierrc.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
{
"singleQuote": false,
"trailingComma": "all",
"printWidth": 120,
"tabWidth": 4,
"useTabs": false,
"semi": false,
"bracketSpacing": true,
"arrowParens": "always",
"endOfLine": "lf"
}
14 changes: 14 additions & 0 deletions .vscode/settings.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
{
"editor.formatOnPaste": false, // required
"editor.formatOnType": true, // required
"editor.formatOnSave": true, // optional
"editor.formatOnSaveMode": "file", // required to format on save
"files.autoSave": "onFocusChange", // optional but recommended
"eslint.packageManager": "yarn",
"javascript.format.enable": false,
"editor.codeActionsOnSave": {
"source.fixAll.eslint": true
},
"eslint.validate": ["javascript", "json"]

}
674 changes: 674 additions & 0 deletions LICENSE

Large diffs are not rendered by default.

26 changes: 26 additions & 0 deletions package.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
{
"name": "alto",
"version": "0.0.1",
"description": "A performant and modular ERC-4337 Bundler written in Typescript",
"main": "src/run.ts",
"repository": "https://github.com/pimlicolabs/alto.git",
"author": "Pimlico",
"license": "GPL-3",
"scripts": {
"start": "ts-node src/app.ts",
"lint": "eslint src/**/*.ts",
"lint:fix": "eslint src/**/*.ts --fix"
},
"devDependencies": {
"@swc/core": "^1.3.49",
"typescript": "^5.0.4",
"@typescript-eslint/eslint-plugin": "^5.57.1",
"@typescript-eslint/parser": "^5.57.1",
"eslint": "^8.38.0",
"eslint-config-prettier": "^8.8.0",
"eslint-plugin-json": "^3.1.0",
"eslint-plugin-prettier": "^4.2.1",
"prettier": "^2.8.7",
"ts-node": "^10.9.1"
}
}
1 change: 1 addition & 0 deletions src/app.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
console.log("hello world")
20 changes: 20 additions & 0 deletions tsconfig.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
{
"compilerOptions": {
"target": "es2016",
"module": "commonjs",
"esModuleInterop": true,
"forceConsistentCasingInFileNames": true,
"strict": true,
"noImplicitReturns": true,
"noUnusedLocals": true,
"noUnusedParameters": true,
"preserveConstEnums": true,
"removeComments": false,
"resolveJsonModule": true,
"sourceMap": true,
"skipLibCheck": true
},
"ts-node": {
"swc": true
}
}

0 comments on commit c23958c

Please sign in to comment.