Skip to content

Commit 7019298

Browse files
author
“Gabriel
committed
Major update package
1 parent 96b7fa0 commit 7019298

40 files changed

Lines changed: 10364 additions & 10101 deletions

.eslintrc

Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
1+
{
2+
"root": true,
3+
"extends": [
4+
"eslint:recommended",
5+
"plugin:react/recommended"
6+
],
7+
"parserOptions": {
8+
"ecmaVersion": "latest",
9+
"sourceType": "module",
10+
"ecmaFeatures": {
11+
"jsx": true
12+
}
13+
},
14+
"rules": {
15+
"no-console": ["error", { "allow": ["warn", "error", "info"] }],
16+
"max-len": ["error", 120],
17+
"semi": "off",
18+
"indent": ["error", 2, { "SwitchCase": 1 }],
19+
"comma-dangle": ["error", "only-multiline"],
20+
"react/prop-types": "off"
21+
},
22+
"globals": {
23+
"process": "readonly",
24+
"console": "readonly",
25+
"document": "readonly",
26+
"Promise": "readonly",
27+
"setTimeout": "readonly",
28+
"localStorage": "readonly"
29+
}
30+
}

.eslintrc.json

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

.nvmrc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
stable
1+
18

.prettierrc

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
{
2+
"printWidth": 120,
3+
"tabWidth": 2,
4+
"useTabs": false,
5+
"singleQuote": true
6+
}

firebase.json

Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,10 +7,40 @@
77
"**/node_modules/**"
88
],
99
"rewrites": [
10+
{
11+
"source": "/api/**",
12+
"function": "api",
13+
"region": "europe-west3"
14+
},
1015
{
1116
"source": "**",
1217
"destination": "/index.html"
1318
}
1419
]
20+
},
21+
"functions": [
22+
{
23+
"source": "functions",
24+
"codebase": "default",
25+
"ignore": [
26+
"node_modules",
27+
".git",
28+
"firebase-debug.log",
29+
"firebase-debug.*.log"
30+
],
31+
"predeploy": [
32+
"npm --prefix \"$RESOURCE_DIR\" run lint"
33+
]
34+
}
35+
],
36+
"emulators": {
37+
"functions": {
38+
"host": "localhost",
39+
"port": "5002"
40+
}
41+
},
42+
"firestore": {
43+
"rules": "firestore.rules",
44+
"indexes": "firestore.indexes.json"
1545
}
1646
}

firestore.indexes.json

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
{
2+
"indexes": [],
3+
"fieldOverrides": []
4+
}

firestore.rules

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
service cloud.firestore {
2+
match /databases/{database}/documents {
3+
match /{document=**} {
4+
// This rule allows anyone with your database reference to view, edit,
5+
// and delete all data in your database. It is useful for getting
6+
// started, but it is configured to expire after 30 days because it
7+
// leaves your app open to attackers. At that time, all client
8+
// requests to your database will be denied.
9+
//
10+
// Make sure to write security rules for your app before that time, or
11+
// else all client requests to your database will be denied until you
12+
// update your rules.
13+
allow read, write: if request.time < timestamp.date(2023, 3, 19);
14+
}
15+
}
16+
}

functions/.eslintrc.js

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
module.exports = {
2+
root: true,
3+
env: {
4+
es6: true,
5+
node: true,
6+
},
7+
extends: ['eslint:recommended', 'google'],
8+
parserOptions: {
9+
ecmaVersion: 8,
10+
sourceType: 'module',
11+
},
12+
rules: {
13+
quotes: ['error', 'single'],
14+
},
15+
};

functions/.gitignore

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

functions/.nvmrc

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

0 commit comments

Comments
 (0)