Skip to content

Commit 9ee0f07

Browse files
authored
Merge pull request #231 from adamayuda/api-health
api code base
2 parents 7582c58 + 693c500 commit 9ee0f07

30 files changed

+1496
-893
lines changed

.gitignore

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,4 +2,6 @@ node_modules
22
**.DS_Store
33
.vscode
44

5-
yarn-error.log
5+
yarn-error.log
6+
7+
.idea/

api/.eslintignore

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
node_modules/
2+
coverage
3+
dist
4+
*.*
5+
!*.tsx
6+
!*.ts
7+
!*.js
8+
!*.json
9+
*.svg

api/.eslintrc.js

Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
module.exports = {
2+
parser: "@typescript-eslint/parser", // Specifies the ESLint parser
3+
extends: [
4+
"plugin:@typescript-eslint/recommended", // Uses the recommended rules from the @typescript-eslint/eslint-plugin
5+
"prettier/@typescript-eslint", // Uses eslint-config-prettier to disable ESLint rules from @typescript-eslint/eslint-plugin that would conflict with prettier
6+
"plugin:prettier/recommended", // Enables eslint-plugin-prettier and displays prettier errors as ESLint errors. Make sure this is always the last configuration in the extends array.
7+
],
8+
parserOptions: {
9+
ecmaVersion: 2018, // Allows for the parsing of modern ECMAScript features
10+
sourceType: "module", // Allows for the use of imports
11+
},
12+
plugins: ["unicorn"],
13+
rules: {
14+
"sort-imports": [
15+
"error",
16+
{
17+
ignoreCase: false,
18+
ignoreDeclarationSort: false,
19+
ignoreMemberSort: false,
20+
memberSyntaxSortOrder: ["none", "all", "multiple", "single"],
21+
},
22+
],
23+
"unicorn/filename-case": "error",
24+
"@typescript-eslint/explicit-function-return-type": 0,
25+
camelcase: 1,
26+
},
27+
};

api/.firebaserc

Lines changed: 0 additions & 5 deletions
This file was deleted.

api/.gitignore

Lines changed: 5 additions & 67 deletions
Original file line numberDiff line numberDiff line change
@@ -1,70 +1,8 @@
1-
# Logs
2-
logs
3-
*.log
4-
npm-debug.log*
5-
yarn-debug.log*
6-
yarn-error.log*
7-
firebase-debug.log*
8-
9-
# Firebase cache
10-
.firebase/
11-
12-
# Firebase config
13-
14-
# Uncomment this if you'd like others to create their own Firebase project.
15-
# For a team working on the same Firebase project(s), it is recommended to leave
16-
# it commented so all members can deploy to the same project(s) in .firebaserc.
17-
# .firebaserc
18-
19-
# Runtime data
20-
pids
21-
*.pid
22-
*.seed
23-
*.pid.lock
24-
25-
# Directory for instrumented libs generated by jscoverage/JSCover
26-
lib-cov
27-
28-
# Coverage directory used by tools like istanbul
1+
dist
292
coverage
303

31-
# nyc test coverage
32-
.nyc_output
33-
34-
# Grunt intermediate storage (http://gruntjs.com/creating-plugins#storing-task-files)
35-
.grunt
36-
37-
# Bower dependency directory (https://bower.io/)
38-
bower_components
39-
40-
# node-waf configuration
41-
.lock-wscript
42-
43-
# Compiled binary addons (http://nodejs.org/api/addons.html)
44-
build/Release
45-
46-
# Dependency directories
47-
node_modules/
48-
49-
# Optional npm cache directory
50-
.npm
51-
52-
# Optional eslint cache
53-
.eslintcache
54-
55-
# Optional REPL history
56-
.node_repl_history
57-
58-
# Output of 'npm pack'
59-
*.tgz
60-
61-
# Yarn Integrity file
62-
.yarn-integrity
63-
64-
# environment variables file
65-
.runtimeconfig.json
4+
# logs
5+
**.tsbuildinfo
666

67-
# firestore.rules
68-
firestore.rules
69-
#firestore.indexes.json
70-
firestore.indexes.json
7+
# node
8+
**node_modules
File renamed without changes.

api/firebase.json

Lines changed: 0 additions & 21 deletions
This file was deleted.

api/functions/.eslintignore

Lines changed: 0 additions & 2 deletions
This file was deleted.

api/functions/.gitignore

Lines changed: 0 additions & 13 deletions
This file was deleted.

api/functions/.prettierignore

Lines changed: 0 additions & 2 deletions
This file was deleted.

0 commit comments

Comments
 (0)