Skip to content

Commit 47d065f

Browse files
🤸🏽inital commit
0 parents  commit 47d065f

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

51 files changed

+14963
-0
lines changed

.editorconfig

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
root = true
2+
3+
[*]
4+
indent_style = space
5+
indent_size = 2
6+
end_of_line = lf
7+
charset = utf-8
8+
insert_final_newline = true

.env.example

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
PORT=
2+
DATABASE_HOST=
3+
DATABASE_PORT=
4+
DATABASE_USERNAME=
5+
DATABASE_PASSWORD=
6+
DATABASE_NAME=
7+
JWT_SECRET=
8+
MONGODB_HOST=
9+
MONGODB_DATABASE_NAME=

.eslintignore

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
build/
2+
node_modules/

.eslintrc.js

Lines changed: 53 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,53 @@
1+
module.exports = {
2+
parser: '@typescript-eslint/parser',
3+
parserOptions: {
4+
project: 'tsconfig.eslint.json',
5+
tsconfigRootDir: __dirname,
6+
sourceType: 'module',
7+
},
8+
plugins: [
9+
'@typescript-eslint/eslint-plugin',
10+
'eslint-plugin-simple-import-sort',
11+
'eslint-plugin-import',
12+
'simple-import-sort',
13+
],
14+
extends: [
15+
'plugin:@typescript-eslint/recommended',
16+
'plugin:prettier/recommended',
17+
'./node_modules/gts/',
18+
],
19+
root: true,
20+
env: {
21+
node: true,
22+
jest: true,
23+
},
24+
ignorePatterns: ['.eslintrc.js'],
25+
rules: {
26+
'@typescript-eslint/interface-name-prefix': 'off',
27+
'@typescript-eslint/explicit-function-return-type': 'off',
28+
'@typescript-eslint/explicit-module-boundary-types': 'off',
29+
'@typescript-eslint/no-explicit-any': 'off',
30+
'@typescript-eslint/no-unused-vars': 'error',
31+
'simple-import-sort/imports': 'error',
32+
'simple-import-sort/exports': 'error',
33+
'import/no-duplicates': 'error',
34+
'prettier/prettier': [
35+
'error',
36+
{
37+
endOfLine: 'auto',
38+
},
39+
],
40+
'node/no-unpublished-import': [
41+
'error',
42+
{
43+
allowModules: ['supertest', '@nestjs/testing'],
44+
},
45+
],
46+
'node/no-extraneous-import': [
47+
'error',
48+
{
49+
allowModules: ['express'],
50+
},
51+
],
52+
},
53+
};

.gitattributes

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
/.yarn/** linguist-vendored
2+
/.yarn/releases/* binary
3+
/.yarn/plugins/**/* binary
4+
/.pnp.* binary linguist-generated

.gitignore

Lines changed: 59 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,59 @@
1+
# compiled output
2+
/dist
3+
/node_modules
4+
/build
5+
6+
# Logs
7+
logs
8+
*.log
9+
npm-debug.log*
10+
pnpm-debug.log*
11+
yarn-debug.log*
12+
yarn-error.log*
13+
lerna-debug.log*
14+
15+
# OS
16+
.DS_Store
17+
18+
# Tests
19+
/coverage
20+
/.nyc_output
21+
22+
# IDEs and editors
23+
/.idea
24+
.project
25+
.classpath
26+
.c9/
27+
*.launch
28+
.settings/
29+
*.sublime-workspace
30+
31+
# IDE - VSCode
32+
.vscode/*
33+
!.vscode/settings.json
34+
!.vscode/tasks.json
35+
!.vscode/launch.json
36+
!.vscode/extensions.json
37+
38+
# dotenv environment variable files
39+
.env
40+
.env.development.local
41+
.env.test.local
42+
.env.production.local
43+
.env.local
44+
45+
# temp directory
46+
.temp
47+
.tmp
48+
49+
# Runtime data
50+
pids
51+
*.pid
52+
*.seed
53+
*.pid.lock
54+
55+
# Diagnostic reports (https://nodejs.org/api/report.html)
56+
report.[0-9]*.[0-9]*.[0-9]*.[0-9]*.json
57+
58+
# locals
59+
src/**/*/*.localonly.ts

.husky/pre-commit

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
yarn precommit

.husky/pre-push

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
yarn prepush

.lintstagedrc.json

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
{
2+
"{src,apps,libs,test}/**/*.ts": ["eslint --fix"],
3+
"./**/*.{ts,js,json,*rc}": ["prettier --write"],
4+
"package.json": ["npx -y sort-package-json"]
5+
}

.prettierrc

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
{
2+
"$schema": "https://json.schemastore.org/prettierrc",
3+
"singleQuote": true,
4+
"trailingComma": "all",
5+
"printWidth": 80,
6+
"tabWidth": 2,
7+
"useTabs": false,
8+
"semi": true,
9+
"bracketSpacing": true,
10+
"arrowParens": "avoid",
11+
"endOfLine": "auto"
12+
}

0 commit comments

Comments
 (0)