From 8703d684c4beaa23f08c1b3972c77f4002e91018 Mon Sep 17 00:00:00 2001 From: "Jade (Rose) Rowland" Date: Mon, 14 Oct 2024 13:01:02 -0400 Subject: [PATCH] fix: lint --- packages/superdough/synth.mjs | 4 ++-- website/src/components/Udels/UdelsEditor.jsx | 4 ++-- website/src/docs/Icon.jsx | 2 +- website/src/docs/MiniRepl.jsx | 1 - website/src/repl/components/ReplEditor.jsx | 1 - website/src/repl/components/panel/Reference.jsx | 9 ++++++--- website/src/repl/components/panel/SoundsTab.jsx | 15 +++++++-------- website/tailwind.config.cjs | 2 +- 8 files changed, 19 insertions(+), 19 deletions(-) diff --git a/packages/superdough/synth.mjs b/packages/superdough/synth.mjs index 113fb4e5..51699f98 100644 --- a/packages/superdough/synth.mjs +++ b/packages/superdough/synth.mjs @@ -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); diff --git a/website/src/components/Udels/UdelsEditor.jsx b/website/src/components/Udels/UdelsEditor.jsx index 47e7a328..fe7a1ae4 100644 --- a/website/src/components/Udels/UdelsEditor.jsx +++ b/website/src/components/Udels/UdelsEditor.jsx @@ -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'; @@ -20,7 +20,7 @@ export default function UdelsEditor(Props) { - + ); } diff --git a/website/src/docs/Icon.jsx b/website/src/docs/Icon.jsx index 8a58da12..48b05d87 100644 --- a/website/src/docs/Icon.jsx +++ b/website/src/docs/Icon.jsx @@ -52,7 +52,7 @@ export function Icon({ type }) { d="M52.5 440.6c-9.5 7.9-22.8 9.7-34.1 4.4S0 428.4 0 416V96C0 83.6 7.2 72.3 18.4 67s24.5-3.6 34.1 4.4l192 160L256 241V96c0-17.7 14.3-32 32-32s32 14.3 32 32V416c0 17.7-14.3 32-32 32s-32-14.3-32-32V271l-11.5 9.6-192 160z" clipRule="evenodd" /> - ), + ), }[type] } diff --git a/website/src/docs/MiniRepl.jsx b/website/src/docs/MiniRepl.jsx index ca76c362..81e7a24a 100644 --- a/website/src/docs/MiniRepl.jsx +++ b/website/src/docs/MiniRepl.jsx @@ -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'; diff --git a/website/src/repl/components/ReplEditor.jsx b/website/src/repl/components/ReplEditor.jsx index f0b11ff4..5a1c2e67 100644 --- a/website/src/repl/components/ReplEditor.jsx +++ b/website/src/repl/components/ReplEditor.jsx @@ -15,7 +15,6 @@ export default function ReplEditor(Props) { const settings = useSettings(); const { panelPosition } = settings; - return (
diff --git a/website/src/repl/components/panel/Reference.jsx b/website/src/repl/components/panel/Reference.jsx index 4a778a84..07820807 100644 --- a/website/src/repl/components/panel/Reference.jsx +++ b/website/src/repl/components/panel/Reference.jsx @@ -51,8 +51,11 @@ export function Reference() { ))}
-
-
+
+

API Reference

This is the long list functions you can use! Remember that you don't need to remember all of those and that @@ -80,7 +83,7 @@ export function Reference() { ))} ))} -

+
); diff --git a/website/src/repl/components/panel/SoundsTab.jsx b/website/src/repl/components/panel/SoundsTab.jsx index f2b9fbd1..60f5a22d 100644 --- a/website/src/repl/components/panel/SoundsTab.jsx +++ b/website/src/repl/components/panel/SoundsTab.jsx @@ -53,13 +53,12 @@ export function SoundsTab() { return (
- - setSearch(e.target.value)} - /> + setSearch(e.target.value)} + />
settingsMap.setKey('soundsFilter', 'user')} />
- +
{soundEntries.map(([name, { data, onTrigger }]) => { return ( diff --git a/website/tailwind.config.cjs b/website/tailwind.config.cjs index 4c76159e..23ae96c3 100644 --- a/website/tailwind.config.cjs +++ b/website/tailwind.config.cjs @@ -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 {