fix: lint

This commit is contained in:
Jade (Rose) Rowland 2024-10-14 13:01:02 -04:00
parent b0d2115f43
commit 8703d684c4
8 changed files with 19 additions and 19 deletions

View File

@ -73,8 +73,8 @@ export function registerSynthSounds() {
'supersaw',
(begin, value, onended) => {
const ac = getAudioContext();
const {z1, z2, z3} = value;
let { duration, n, unison = z2 ?? 5, spread = z3 ?? 0.6, detune, } = value;
const { z1, z2, z3 } = value;
let { duration, n, unison = z2 ?? 5, spread = z3 ?? 0.6, detune } = value;
detune = detune ?? n ?? z1 ?? 0.18;
const frequency = getFrequencyFromValue(value);

View File

@ -1,5 +1,5 @@
import Loader from '@src/repl/components/Loader';
import { HorizontalPanel, } from '@src/repl/components/panel/Panel';
import { HorizontalPanel } from '@src/repl/components/panel/Panel';
import { Code } from '@src/repl/components/Code';
import BigPlayButton from '@src/repl/components/BigPlayButton';
import UserFacingErrorMessage from '@src/repl/components/UserFacingErrorMessage';

View File

@ -1,7 +1,6 @@
import { useState, useRef, useCallback, useMemo, useEffect } from 'react';
import { Icon } from './Icon';
import { silence, noteToMidi, _mod } from '@strudel/core';
import { clearHydra } from '@strudel/hydra';
import { getDrawContext, getPunchcardPainter } from '@strudel/draw';
import { transpiler } from '@strudel/transpiler';
import { getAudioContext, webaudioOutput, initAudioOnFirstClick } from '@strudel/webaudio';

View File

@ -15,7 +15,6 @@ export default function ReplEditor(Props) {
const settings = useSettings();
const { panelPosition } = settings;
return (
<div className="h-full flex flex-col relative">
<Loader active={pending} />

View File

@ -51,8 +51,11 @@ export function Reference() {
))}
</div>
</div>
<div className="break-normal flex-grow flex-col overflow-y-auto overflow-x-hidden px-2 flex relative" id="reference-container">
<div className='prose dark:prose-invert min-w-full px-1 '>
<div
className="break-normal flex-grow flex-col overflow-y-auto overflow-x-hidden px-2 flex relative"
id="reference-container"
>
<div className="prose dark:prose-invert min-w-full px-1 ">
<h2>API Reference</h2>
<p>
This is the long list functions you can use! Remember that you don't need to remember all of those and that

View File

@ -53,7 +53,6 @@ export function SoundsTab() {
return (
<div id="sounds-tab" className="px-4 flex flex-col w-full h-full dark:text-white text-stone-900">
<input
className="w-full p-1 bg-background rounded-md pb-2"
placeholder="Search"

View File

@ -34,7 +34,7 @@ module.exports = {
},
spacing: {
'app-height': 'var(--app-height)',
'app-width': 'var(--app-width)'
'app-width': 'var(--app-width)',
},
typography(theme) {
return {