Skip to content

Commit 56c19f3

Browse files
committed
lint: Fix pre-commit issues
1 parent 5e1043f commit 56c19f3

File tree

12 files changed

+1087
-137
lines changed

12 files changed

+1087
-137
lines changed

package-lock.json

+1,051-99
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

+5-3
Original file line numberDiff line numberDiff line change
@@ -76,6 +76,8 @@
7676
},
7777
"devDependencies": {
7878
"@angular-devkit/build-angular": "^18.0.0",
79+
"@angular-eslint/builder": "^18.0.1",
80+
"@angular-eslint/eslint-plugin": "^18.0.1",
7981
"@angular/animations": "^18.0.0",
8082
"@angular/cli": "^18.0.0",
8183
"@angular/compiler-cli": "^18.0.0",
@@ -90,8 +92,8 @@
9092
"@types/semver": "^7.1.0",
9193
"@types/triple-beam": "^1.3.0",
9294
"@types/winston": "^2.4.4",
93-
"@typescript-eslint/eslint-plugin": "6.13.1",
94-
"@typescript-eslint/parser": "6.13.1",
95+
"@typescript-eslint/eslint-plugin": "^7.11.0",
96+
"@typescript-eslint/parser": "^7.11.0",
9597
"conventional-changelog-cli": "^1.2.0",
9698
"cross-spawn": "^7.0.3",
9799
"eslint": "^8.54.0",
@@ -118,4 +120,4 @@
118120
"typescript": ">=5.4 <5.5"
119121
},
120122
"typings": "index.d.ts"
121-
}
123+
}

src/analytics/firebase.ts

+2-2
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

src/auth/rxfire.ts

+2-2
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

src/compat/firestore/collection/changes.ts

+2-2
Original file line numberDiff line numberDiff line change
@@ -98,7 +98,7 @@ function sliceAndSplice<T>(
9898
export function combineChange<T>(combined: DocumentChange<T>[], change: DocumentChange<T>): DocumentChange<T>[] {
9999
switch (change.type) {
100100
case 'added':
101-
if (combined[change.newIndex] && combined[change.newIndex].doc.ref.isEqual(change.doc.ref)) {
101+
if (combined[change.newIndex]?.doc.ref.isEqual(change.doc.ref)) {
102102
// Not sure why the duplicates are getting fired
103103
} else {
104104
return sliceAndSplice(combined, change.newIndex, 0, change);
@@ -119,7 +119,7 @@ export function combineChange<T>(combined: DocumentChange<T>[], change: Document
119119
}
120120
break;
121121
case 'removed':
122-
if (combined[change.oldIndex] && combined[change.oldIndex].doc.ref.isEqual(change.doc.ref)) {
122+
if (combined[change.oldIndex]?.doc.ref.isEqual(change.doc.ref)) {
123123
return sliceAndSplice(combined, change.oldIndex, 1);
124124
}
125125
break;

src/database/rxfire.ts

+3-3
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

src/firestore/lite/rxfire.ts

+4-4
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

src/firestore/rxfire.ts

+6-6
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

src/performance/rxfire.ts

+2-2
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

src/remote-config/rxfire.ts

+4-4
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

src/vertexai-preview/firebase.ts

+2-2
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

src/zones.ts

+4-8
Original file line numberDiff line numberDiff line change
@@ -17,10 +17,6 @@ import {
1717
} from 'rxjs';
1818
import { observeOn, subscribeOn, tap } from 'rxjs/operators';
1919

20-
// eslint-disable-next-line @typescript-eslint/no-empty-function
21-
function noop() {
22-
}
23-
2420
/**
2521
* Schedules tasks so that they are invoked inside the Zone that is passed in the constructor.
2622
*/
@@ -56,7 +52,7 @@ class BlockUntilFirstOperator<T> implements Operator<T, T> {
5652
) {}
5753

5854
call(subscriber: Subscriber<T>, source: Observable<T>): TeardownLogic {
59-
const taskDone = this.zone.run(() => this.pendingTasks.add());
55+
const taskDone: VoidFunction = this.zone.run(() => this.pendingTasks.add());
6056
// maybe this is a race condition, invoke in a timeout
6157
// hold for 10ms while I try to figure out what is going on
6258
const unscheduleTask = () => setTimeout(taskDone, 10);
@@ -195,12 +191,12 @@ export const ɵzoneWrap = <T= unknown>(it: T, blockUntilFirst: boolean): T => {
195191
// eslint-disable-next-line @typescript-eslint/no-misused-promises
196192
return run(
197193
() =>
198-
new Promise((resolve, reject) =>
194+
new Promise((resolve, reject) => {
199195
ret.then(
200196
(it) => run(() => resolve(it)),
201197
(reason) => run(() => reject(reason))
202-
)
203-
)
198+
);
199+
})
204200
);
205201
} else if (typeof ret === 'function' && taskDone) {
206202
// Handle unsubscribe

0 commit comments

Comments
 (0)