Skip to content

Commit 444c3ae

Browse files
authored
Enable strict mode on all packages except firestore and database (#1948)
1 parent a899e7d commit 444c3ae

File tree

14 files changed

+19
-24
lines changed

14 files changed

+19
-24
lines changed

config/tsconfig.base.json

+1-2
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,7 @@
33
"compilerOptions": {
44
"declaration": true,
55
"importHelpers": true,
6-
"strictNullChecks": true,
7-
"noImplicitAny": true,
6+
"strict": true,
87
"lib": [
98
"es5",
109
"dom",

packages/app/tsconfig.json

+1-2
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,7 @@
22
"extends": "../../config/tsconfig.base.json",
33
"compilerOptions": {
44
"outDir": "dist",
5-
"resolveJsonModule": true,
6-
"strict": true
5+
"resolveJsonModule": true
76
},
87
"exclude": ["dist/**/*"]
98
}

packages/database/tsconfig.json

+1-2
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,7 @@
22
"extends": "../../config/tsconfig.base.json",
33
"compilerOptions": {
44
"outDir": "dist",
5-
"strictNullChecks": false,
6-
"noImplicitAny": false
5+
"strict": false
76
},
87
"exclude": [
98
"dist/**/*"

packages/firebase/tsconfig.json

+1-2
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,7 @@
33
"compilerOptions": {
44
"outDir": "dist",
55
"declaration": false,
6-
"allowSyntheticDefaultImports": true,
7-
"strict": true
6+
"allowSyntheticDefaultImports": true
87
},
98
"exclude": [
109
"dist/**/*"

packages/firestore/tsconfig.json

+6-1
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,12 @@
33
"compilerOptions": {
44
"outDir": "dist",
55
"strictFunctionTypes": true,
6-
"strictNullChecks": true
6+
"strictNullChecks": true,
7+
"noImplicitAny": true,
8+
"alwaysStrict": false,
9+
"noImplicitThis": false,
10+
"strictBindCallApply": false,
11+
"strictPropertyInitialization": false
712
},
813
"exclude": [
914
"dist/**/*"

packages/functions/tsconfig.json

+1-2
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,7 @@
11
{
22
"extends": "../../config/tsconfig.base.json",
33
"compilerOptions": {
4-
"outDir": "dist",
5-
"strict": true
4+
"outDir": "dist"
65
},
76
"exclude": [
87
"dist/**/*"

packages/installations/tsconfig.json

-2
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,6 @@
33
"compilerOptions": {
44
"downlevelIteration": true,
55
"resolveJsonModule": true,
6-
7-
"strict": true,
86
"noUnusedLocals": true,
97
"noUnusedParameters": true,
108
"noImplicitReturns": true,

packages/logger/tsconfig.json

+1-2
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,7 @@
11
{
22
"extends": "../../config/tsconfig.base.json",
33
"compilerOptions": {
4-
"outDir": "dist",
5-
"strict": true
4+
"outDir": "dist"
65
},
76
"exclude": [
87
"dist/**/*"

packages/messaging/tsconfig.json

-1
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,6 @@
22
"extends": "../../config/tsconfig.base.json",
33
"compilerOptions": {
44
"outDir": "dist",
5-
"strict": true,
65
"noUnusedLocals": true,
76
"lib": [
87
"dom",

packages/performance/tsconfig.json

-1
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,6 @@
33
"compilerOptions": {
44
"outDir": "dist",
55
"resolveJsonModule": true,
6-
"strict": true,
76
"noUnusedLocals": true,
87
"noUnusedParameters": true,
98
"noImplicitReturns": true,

packages/rxfire/firestore/collection/index.ts

+4-1
Original file line numberDiff line numberDiff line change
@@ -180,7 +180,10 @@ export function auditTrail(
180180
events?: firestore.DocumentChangeType[]
181181
): Observable<firestore.DocumentChange[]> {
182182
return collectionChanges(query, events).pipe(
183-
scan((current, action) => [...current, ...action], [])
183+
scan(
184+
(current, action) => [...current, ...action],
185+
[] as firestore.DocumentChange[]
186+
)
184187
);
185188
}
186189

packages/storage/tsconfig.json

+1-2
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,7 @@
11
{
22
"extends": "../../config/tsconfig.base.json",
33
"compilerOptions": {
4-
"outDir": "dist",
5-
"strict": true
4+
"outDir": "dist"
65
},
76
"exclude": [
87
"dist/**/*"

packages/testing/tsconfig.json

+1-2
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,7 @@
11
{
22
"extends": "../../config/tsconfig.base.json",
33
"compilerOptions": {
4-
"outDir": "dist",
5-
"strict": true
4+
"outDir": "dist"
65
},
76
"exclude": [
87
"dist/**/*"

packages/util/tsconfig.json

+1-2
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,7 @@
11
{
22
"extends": "../../config/tsconfig.base.json",
33
"compilerOptions": {
4-
"outDir": "dist",
5-
"strict": true
4+
"outDir": "dist"
65
},
76
"exclude": [
87
"dist/**/*"

0 commit comments

Comments
 (0)