Skip to content

Commit e542f1d

Browse files
authored
Upgrade to ESLint 8 (#8384)
* Upgrade to eslint 8 * Use eslint-disable-next-line instead of eslint-ignore
1 parent 6266124 commit e542f1d

File tree

6 files changed

+300
-284
lines changed

6 files changed

+300
-284
lines changed

package.json

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -87,9 +87,9 @@
8787
"@types/tmp": "0.2.6",
8888
"@types/trusted-types": "2.0.7",
8989
"@types/yargs": "17.0.32",
90-
"@typescript-eslint/eslint-plugin": "5.62.0",
91-
"@typescript-eslint/eslint-plugin-tslint": "5.62.0",
92-
"@typescript-eslint/parser": "5.62.0",
90+
"@typescript-eslint/eslint-plugin": "7.16.1",
91+
"@typescript-eslint/eslint-plugin-tslint": "7.0.2",
92+
"@typescript-eslint/parser": "7.16.1",
9393
"api-documenter-me": "0.1.1",
9494
"api-extractor-me": "0.1.2",
9595
"babel-loader": "8.3.0",
@@ -101,9 +101,9 @@
101101
"coveralls": "3.1.1",
102102
"del": "6.1.1",
103103
"dependency-graph": "0.11.0",
104-
"eslint": "7.32.0",
104+
"eslint": "8.56.0",
105105
"eslint-plugin-import": "2.26.0",
106-
"eslint-plugin-unused-imports": "2.0.0",
106+
"eslint-plugin-unused-imports": "3.2.0",
107107
"express": "4.19.2",
108108
"find-free-port": "2.0.0",
109109
"firebase-tools": "11.30.0",

packages/analytics/src/helpers.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -185,6 +185,7 @@ async function gtagOnEvent(
185185
// if not all entries in the 'send_to' field could be mapped to
186186
// a FID. In these cases, wait on all pending initialization promises.
187187
if (initializationPromisesToWaitFor.length === 0) {
188+
/* eslint-disable-next-line @typescript-eslint/no-floating-promises */
188189
initializationPromisesToWaitFor = Object.values(
189190
initializationPromisesMap
190191
);

packages/auth-compat/test/helpers/helpers.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,7 @@
1717

1818
import * as sinon from 'sinon';
1919
import firebase from '@firebase/app-compat';
20+
/* eslint-disable-next-line import/no-extraneous-dependencies */
2021
import '@firebase/auth-compat';
2122
import { Provider } from '@firebase/component';
2223
import '../..';

packages/firestore/src/util/async_queue_impl.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -286,6 +286,7 @@ export class AsyncQueueImpl implements AsyncQueue {
286286
// Note that draining may generate more delayed ops, so we do that first.
287287
return this.drain().then(() => {
288288
// Run ops in the same order they'd run if they ran naturally.
289+
/* eslint-disable-next-line @typescript-eslint/no-floating-promises */
289290
this.delayedOperations.sort((a, b) => a.targetTimeMs - b.targetTimeMs);
290291

291292
for (const op of this.delayedOperations) {
@@ -311,6 +312,7 @@ export class AsyncQueueImpl implements AsyncQueue {
311312
// NOTE: indexOf / slice are O(n), but delayedOperations is expected to be small.
312313
const index = this.delayedOperations.indexOf(op);
313314
debugAssert(index >= 0, 'Delayed operation not found.');
315+
/* eslint-disable-next-line @typescript-eslint/no-floating-promises */
314316
this.delayedOperations.splice(index, 1);
315317
}
316318
}

repo-scripts/prune-dts/package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,8 +13,8 @@
1313
},
1414
"license": "Apache-2.0",
1515
"dependencies": {
16-
"eslint": "7.32.0",
17-
"eslint-plugin-unused-imports": "2.0.0",
16+
"eslint": "8.56.0",
17+
"eslint-plugin-unused-imports": "3.2.0",
1818
"prettier": "2.8.7"
1919
},
2020
"repository": {

0 commit comments

Comments
 (0)