mirror of
https://github.com/zhigang1992/firebase-tools.git
synced 2026-01-12 09:04:01 +08:00
Update Functions init templates (#1093)
* init template updates * add noImplicitReturns * add line to changelog * Update index.js * Update index.ts
This commit is contained in:
@@ -12,3 +12,4 @@ changed - Clearer empty state when pretty-printing Firestore indexes
|
||||
changed - JavasSript functions template now includes gitignore
|
||||
changed - Added node_modules/ to TypeScript functions template gitignore
|
||||
fixed - Fixed the link to the Google Cloud Console when opening Functions logs
|
||||
changed - Updated Typescript and other dependencies in newly initalized folders containing Functions
|
||||
|
||||
@@ -14,8 +14,8 @@
|
||||
"firebase-functions": "^2.1.0"
|
||||
},
|
||||
"devDependencies": {
|
||||
"eslint": "^4.12.0",
|
||||
"eslint-plugin-promise": "^3.6.0"
|
||||
"eslint": "^5.12.0",
|
||||
"eslint-plugin-promise": "^4.0.1"
|
||||
},
|
||||
"private": true
|
||||
}
|
||||
|
||||
@@ -15,8 +15,8 @@
|
||||
"firebase-functions": "^2.1.0"
|
||||
},
|
||||
"devDependencies": {
|
||||
"tslint": "~5.8.0",
|
||||
"typescript": "~2.8.3"
|
||||
"tslint": "^5.12.0",
|
||||
"typescript": "^3.2.2"
|
||||
},
|
||||
"private": true
|
||||
}
|
||||
|
||||
@@ -14,7 +14,7 @@
|
||||
"firebase-functions": "^2.1.0"
|
||||
},
|
||||
"devDependencies": {
|
||||
"typescript": "~2.8.3"
|
||||
"typescript": "^3.2.2"
|
||||
},
|
||||
"private": true
|
||||
}
|
||||
|
||||
@@ -1,11 +1,12 @@
|
||||
{
|
||||
"compilerOptions": {
|
||||
"lib": ["es6"],
|
||||
"module": "commonjs",
|
||||
"noImplicitReturns": true,
|
||||
"noUnusedLocals": true,
|
||||
"outDir": "lib",
|
||||
"sourceMap": true,
|
||||
"target": "es6"
|
||||
"strict": true,
|
||||
"target": "es2015"
|
||||
},
|
||||
"compileOnSave": true,
|
||||
"include": [
|
||||
|
||||
@@ -107,9 +107,6 @@
|
||||
// Warns if function overloads could be unified into a single function with optional or rest parameters.
|
||||
"unified-signatures": {"severity": "warning"},
|
||||
|
||||
// Warns if code has an import or variable that is unused.
|
||||
"no-unused-variable": {"severity": "warning"},
|
||||
|
||||
// Prefer const for values that will not change. This better documents code.
|
||||
"prefer-const": {"severity": "warning"},
|
||||
|
||||
|
||||
Reference in New Issue
Block a user