Skip to content

Commit d4fec65

Browse files
committed
Fix linting
1 parent 32d4bdb commit d4fec65

3 files changed

Lines changed: 15 additions & 15 deletions

File tree

apps/extension/src/content_d2l.ts

Lines changed: 7 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,19 +1,19 @@
1-
import type { NotebookLmSource, NotebookPickerTarget } from "./d2l/types";
21
import {
3-
queryAllDeep,
4-
normalizeText,
52
createActionButton,
3+
normalizeText,
4+
queryAllDeep,
65
setButtonBusy,
76
setButtonStatus,
87
} from "./d2l/dom";
9-
import { showNotebookPicker, saveSourcesToNotebook } from "./d2l/notebookPicker";
108
import {
119
captureDownloadUrlViaClick,
1210
extractDownloadUrlFromButton,
1311
fetchDownloadFile,
1412
isZipFile,
1513
unzipFile,
1614
} from "./d2l/download";
15+
import { saveSourcesToNotebook, showNotebookPicker } from "./d2l/notebookPicker";
16+
import type { NotebookLmSource, NotebookPickerTarget } from "./d2l/types";
1717

1818
const LEGACY_NAVBAR_BUTTON_ID = "d2l-to-notebooklm-navbar-button";
1919

@@ -106,12 +106,13 @@ async function handleDownloadButtonAction(
106106

107107
if (total > 1 && notebookId) {
108108
const remaining = sources.slice(1);
109-
const results = await Promise.all(
109+
const resolvedNotebookId = notebookId;
110+
await Promise.all(
110111
remaining.map((source, i) =>
111112
saveSourcesToNotebook(
112113
[source],
113114
getNotebookTitle(),
114-
{ notebookId: notebookId! },
115+
{ notebookId: resolvedNotebookId },
115116
i < remaining.length - 1
116117
).then((response) => {
117118
if (response.ok) {

biome.json

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -4,12 +4,12 @@
44
"includes": [
55
"**",
66
"!**/*.css",
7-
"!**/dist/**",
8-
"!**/node_modules/**",
9-
"!**/.next/**",
10-
"!**/out/**",
11-
"!**/public/**",
12-
"!**/dist-extension/**"
7+
"!**/dist",
8+
"!**/node_modules",
9+
"!**/.next",
10+
"!**/out",
11+
"!**/public",
12+
"!**/dist-extension"
1313
]
1414
},
1515
"formatter": {

package.json

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -10,14 +10,13 @@
1010
"typecheck": "pnpm --recursive --if-present run typecheck",
1111
"format": "biome format . --write",
1212
"format:check": "biome format .",
13-
"lint": "pnpm --recursive lint",
13+
"lint": "biome lint .",
1414
"test": "pnpm --recursive --if-present run test",
1515
"prepare": "husky"
1616
},
1717
"lint-staged": {
1818
"*.{js,jsx,ts,tsx,cjs,mjs,json,css,md,html,yml,yaml}": [
19-
"biome format",
20-
"biome lint"
19+
"biome check --write --no-errors-on-unmatched"
2120
]
2221
},
2322
"devDependencies": {

0 commit comments

Comments
 (0)