Skip to content

Commit f8a4cc7

Browse files
committed
init firebase config
1 parent d7a4aa6 commit f8a4cc7

File tree

2 files changed

+53
-0
lines changed

2 files changed

+53
-0
lines changed

firebase.json

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
{
2+
"functions": {
3+
"predeploy": [
4+
"npm --prefix \"$RESOURCE_DIR\" run lint"
5+
]
6+
}
7+
}

functions/.eslintrc.json

Lines changed: 46 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,46 @@
1+
{
2+
"parserOptions": {
3+
"ecmaVersion": 6
4+
},
5+
"plugins": ["promise"],
6+
"extends": "eslint:recommended",
7+
"rules": {
8+
"no-console": "off",
9+
"no-regex-spaces": "off",
10+
"no-debugger": "off",
11+
"no-unused-vars": "off",
12+
"no-mixed-spaces-and-tabs": "off",
13+
"no-undef": "off",
14+
"no-template-curly-in-string": 1,
15+
"consistent-return": 1,
16+
"array-callback-return": 1,
17+
"eqeqeq": 2,
18+
"no-alert": 2,
19+
"no-caller": 2,
20+
"no-eq-null": 2,
21+
"no-eval": 2,
22+
"no-extend-native": 1,
23+
"no-extra-bind": 1,
24+
"no-extra-label": 1,
25+
"no-floating-decimal": 2,
26+
"no-implicit-coercion": 1,
27+
"no-loop-func": 1,
28+
"no-new-func": 2,
29+
"no-new-wrappers": 1,
30+
"no-throw-literal": 2,
31+
"prefer-promise-reject-errors": 2,
32+
"for-direction": 2,
33+
"getter-return": 2,
34+
"no-await-in-loop": 2,
35+
"no-compare-neg-zero": 2,
36+
"no-catch-shadow": 1,
37+
"no-shadow-restricted-names": 2,
38+
"callback-return": 2,
39+
"handle-callback-err": 2,
40+
"no-path-concat": 1,
41+
"prefer-arrow-callback": 1,
42+
"promise/always-return": 2,
43+
"promise/catch-or-return": 2,
44+
"promise/no-nesting": 1
45+
}
46+
}

0 commit comments

Comments
 (0)