diff --git a/.eslintrc b/.eslintrc new file mode 100644 index 0000000..494d29c --- /dev/null +++ b/.eslintrc @@ -0,0 +1,13 @@ +{ + "parser": "@typescript-eslint/parser", + "extends": [ + "plugin:@typescript-eslint/recommended", + "prettier/@typescript-eslint", + "plugin:prettier/recommended" + ], + "parserOptions": { + "ecmaVersion": 2019, + "sourceType": "module" + }, + "rules": {} +} diff --git a/.gitignore b/.gitignore index f2fac69..c83c05a 100644 --- a/.gitignore +++ b/.gitignore @@ -2,4 +2,5 @@ datastore/ node_modules/ npm-debug.log .vscode/ -.env \ No newline at end of file +.env +build/ \ No newline at end of file diff --git a/.prettierrc b/.prettierrc new file mode 100644 index 0000000..bde4fbf --- /dev/null +++ b/.prettierrc @@ -0,0 +1,5 @@ +{ + "printWidth": 100, + "tabWidth": 4, + "semi": true +} diff --git a/tsconfig.json b/tsconfig.json new file mode 100644 index 0000000..98cc1a5 --- /dev/null +++ b/tsconfig.json @@ -0,0 +1,16 @@ +{ + "compilerOptions": { + "target": "ES2020", + "module": "commonjs", + "lib": ["esnext"], + "allowJs": true, + "outDir": "build", + "rootDir": "src", + "strict": true, + "noImplicitAny": true, + "esModuleInterop": true, + "resolveJsonModule": true, + "skipLibCheck": true + }, + "exclude": ["build", "node_modules", "datastore"] +}