Skip to content

Commit 3980538

Browse files
committed
fix: 🐛 min fix
1 parent 6ac1d17 commit 3980538

3 files changed

Lines changed: 5 additions & 5 deletions

File tree

eslint.config.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,8 @@ export default tseslint.config(
2424
{ allowConstantExport: true },
2525
],
2626
'no-empty': 'off',
27-
'no-unused-vars': 'warn'
27+
'no-unused-vars': 'warn',
28+
'@typescript-eslint/ban-ts-comment': 'off'
2829
},
2930
},
3031
)

src/EncodingDemo.tsx

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -170,8 +170,7 @@ export function EncodingDemo() {
170170
}, []);
171171

172172
function startPlayback() {
173-
// eslint-disable-next-line @typescript-eslint/ban-ts-comment
174-
// @ts-expect-error
173+
// @ts-ignore
175174
playbackIntervalRef.current = setInterval(() => {
176175
setSignalMarkerPos((signalMarkerPos) => Number(signalMarkerPos) + 0.1)
177176
},

src/utils.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -227,8 +227,8 @@ export function debounce(func: () => void, time = 200) {
227227
if (timer) {
228228
clearTimeout(timer);
229229
}
230-
// eslint-disable-next-line @typescript-eslint/ban-ts-comment
231-
// @ts-expect-error
230+
231+
// @ts-ignore
232232
timer = setTimeout(func, time);
233233
};
234234
}

0 commit comments

Comments
 (0)