Skip to content

Commit b4b65ec

Browse files
Fix lint: node: imports, parseInt radix, import type
Co-authored-by: Cursor <cursoragent@cursor.com>
1 parent ed24bf7 commit b4b65ec

2 files changed

Lines changed: 5 additions & 5 deletions

File tree

src/i18n/StringManager.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
* Provides access to localized strings for all components.
66
*/
77

8-
import { LocalizedString, ReadOnlyProperty } from "scenerystack";
8+
import { LocalizedString, type ReadOnlyProperty } from "scenerystack";
99
import strings_en from "./strings_en.json";
1010
import strings_fr from "./strings_fr.json";
1111

vite.config.js

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
import { defineConfig } from "vite";
22
import { VitePWA } from "vite-plugin-pwa";
3-
import fs from "fs";
4-
import path from "path";
3+
import fs from "node:fs";
4+
import path from "node:path";
55

66
/**
77
* Vite plugin that serves ./videos/ as /videos/ with proper Range-request
@@ -36,8 +36,8 @@ function serveVideos() {
3636
if ( rangeHeader ) {
3737
const match = rangeHeader.match( /bytes=(\d+)-(\d*)/ );
3838
if ( match ) {
39-
const start = parseInt( match[ 1 ] );
40-
const end = match[ 2 ] ? parseInt( match[ 2 ] ) : total - 1;
39+
const start = parseInt( match[ 1 ], 10 );
40+
const end = match[ 2 ] ? parseInt( match[ 2 ], 10 ) : total - 1;
4141
res.writeHead( 206, {
4242
...headers,
4343
"Content-Range": `bytes ${ start }-${ end }/${ total }`,

0 commit comments

Comments
 (0)