Skip to content

Commit f786422

Browse files
committed
Add missing scripts & update linter for TS sample
1 parent fd7fc17 commit f786422

File tree

2 files changed

+2
-4
lines changed

2 files changed

+2
-4
lines changed

typescript-getting-started/functions/package.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,8 @@
1111
"typescript": "^2.6.1"
1212
},
1313
"scripts": {
14-
"build": "./node_modules/.bin/tslint --project tsconfig.json && ./node_modules/.bin/tsc",
14+
"lint": "./node_modules/.bin/tslint -p tsconfig.json",
15+
"build": "./node_modules/.bin/tsc",
1516
"serve": "npm run build && firebase serve --only functions",
1617
"shell": "npm run build && firebase experimental:functions:shell",
1718
"start": "npm run shell",

typescript-getting-started/functions/tslint.json

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -71,9 +71,6 @@
7171
// Expressions must always return a value. Avoids common errors like const myValue = functionReturningVoid();
7272
"no-void-expression": [true, "ignore-arrow-function-shorthand"],
7373

74-
// Makes sure result of typeof is compared to correct string values.
75-
"typeof-compare": true,
76-
7774
// Disallow duplicate imports in the same file.
7875
"no-duplicate-imports": true,
7976

0 commit comments

Comments
 (0)