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:
Bryan Kendall
2019-01-15 10:44:12 -08:00
committed by GitHub
parent 1e80f7ef7d
commit 9799ac0302
6 changed files with 9 additions and 10 deletions

View File

@@ -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

View File

@@ -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
}

View File

@@ -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
}

View File

@@ -14,7 +14,7 @@
"firebase-functions": "^2.1.0"
},
"devDependencies": {
"typescript": "~2.8.3"
"typescript": "^3.2.2"
},
"private": true
}

View File

@@ -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": [

View File

@@ -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"},