diff --git a/docker/docker-control.ts b/docker/docker-control.ts index 736e79564d..d93b0df37a 100755 --- a/docker/docker-control.ts +++ b/docker/docker-control.ts @@ -26,13 +26,13 @@ yargs(hideBin(process.argv)) () => {}, async () => { if (process.env.DATABASE_URL && postgresLocalUrlRegex.test(process.env.DATABASE_URL)) { - console.log(`Starting docker...`) + console.log("Starting docker...") await compose.upAll({ config: dockerComposeFile, callback: (chunk) => console.log(chunk.toString()), }) } else { - console.log(`Skipping docker start, DATABASE_URL is not set to a local address`) + console.log("Skipping docker start, DATABASE_URL is not set to a local address") } } ) diff --git a/lambdas/cognito-messaging/src/index.ts b/lambdas/cognito-messaging/src/index.ts index 8d8d1e7d55..7f2b11cc65 100644 --- a/lambdas/cognito-messaging/src/index.ts +++ b/lambdas/cognito-messaging/src/index.ts @@ -17,7 +17,7 @@ const clientMetadataDefaults = (triggerSource: CustomMessageTriggerEvent['trigge const resetPw = triggerSource === 'CustomMessage_ForgotPassword' return { - baseUrl: `https://app.inreach.org`, + baseUrl: 'https://app.inreach.org', subject: resetPw ? 'Reset your password' : 'Confirm your account', message: resetPw ? 'Click the following link to reset your password:' diff --git a/lambdas/cognito-user-migrate/src/getUser.ts b/lambdas/cognito-user-migrate/src/getUser.ts index 78d3ba6b26..d38bfbd767 100644 --- a/lambdas/cognito-user-migrate/src/getUser.ts +++ b/lambdas/cognito-user-migrate/src/getUser.ts @@ -15,7 +15,7 @@ export const getUser: GetUser = async (email) => { } catch (error) { if (error instanceof Prisma.PrismaClientKnownRequestError && error.code === 'P2025') { logger.error(`User not found: ${email}`) - throw new Error(`User not found`) + throw new Error('User not found') } throw error } diff --git a/lib/devmsg.ts b/lib/devmsg.ts index 341cb64086..96f7c32479 100644 --- a/lib/devmsg.ts +++ b/lib/devmsg.ts @@ -2,7 +2,7 @@ import boxen from 'boxen' const message = boxen( - `The following dev commands are available:\n\n- pnpm dev:app InReach App\n- pnpm dev:web InReach Main Website\n- pnpm dev:ui Storybook for UI elements\n- pnpm dev:all Run all in parallel`, + "The following dev commands are available:\n\n- pnpm dev:app InReach App\n- pnpm dev:web InReach Main Website\n- pnpm dev:ui Storybook for UI elements\n- pnpm dev:all Run all in parallel", { title: 'InReach dev Commands', borderStyle: 'double', diff --git a/lib/runInstall.ts b/lib/runInstall.ts index 6930936fc2..8a78da4acf 100644 --- a/lib/runInstall.ts +++ b/lib/runInstall.ts @@ -1,7 +1,7 @@ /* eslint-disable import/no-unused-modules */ import boxen from 'boxen' -const message = boxen(`There have been changes to package dependencies!\n\nRun 'pnpm install' to update.`, { +const message = boxen("There have been changes to package dependencies!\n\nRun 'pnpm install' to update.", { title: 'New/Updated Packages', borderStyle: 'double', borderColor: 'redBright', diff --git a/packages/api/turbo/generators/config.ts b/packages/api/turbo/generators/config.ts index 4125160f7a..4414f4f618 100644 --- a/packages/api/turbo/generators/config.ts +++ b/packages/api/turbo/generators/config.ts @@ -55,7 +55,7 @@ export default function generator(plop: PlopTypes.NodePlopAPI): void { actions: (data) => { if (!data) throw new Error('No data') data.isMutation = data.operation === 'mutation' - const basePath = `router/{{routerDir}}/{{operation}}.{{name}}` + const basePath = 'router/{{routerDir}}/{{operation}}.{{name}}' const actions: PlopTypes.Actions = [] actions.push({ diff --git a/packages/db/client/index.ts b/packages/db/client/index.ts index d59cf9f4de..2b295e2e11 100644 --- a/packages/db/client/index.ts +++ b/packages/db/client/index.ts @@ -39,7 +39,7 @@ prisma.$use(superjsonMiddleware) const queryLogger = createPrismaQueryEventHandler({ queryDuration: true, format: true, - indent: `\t`, + indent: '\t', // linesBetweenQueries: 2, language: 'pl/sql', logger: (data) => log.info(`\n${data}`), diff --git a/packages/db/prisma/dataMigrationRunner.ts b/packages/db/prisma/dataMigrationRunner.ts index 84e6f4cfed..e4aa30bfb0 100644 --- a/packages/db/prisma/dataMigrationRunner.ts +++ b/packages/db/prisma/dataMigrationRunner.ts @@ -59,7 +59,7 @@ const jobs = new Listr( task.output = `${jobNamesToRun.length} migrations to run:\n▸ ${jobNamesToRun.join('\n▸ ')}` task.title = `Pending migrations: ${jobNamesToRun.length}` } else { - task.title = `No pending migrations to apply.` + task.title = 'No pending migrations to apply.' } }, diff --git a/packages/ui/components/core/Donate/index.tsx b/packages/ui/components/core/Donate/index.tsx index 0353f369c1..cb93d59534 100644 --- a/packages/ui/components/core/Donate/index.tsx +++ b/packages/ui/components/core/Donate/index.tsx @@ -16,7 +16,7 @@ const useStyles = createStyles((theme) => ({ animation: `${bounce(16)} 1.75s 5`, }, shrink: { - transition: `all 0.5s ease-in-out`, + transition: 'all 0.5s ease-in-out', padding: '0 !important', borderRadius: '100% !important', width: rem(48), diff --git a/packages/ui/components/core/SearchBox.tsx b/packages/ui/components/core/SearchBox.tsx index dac49d76b2..4720e74200 100644 --- a/packages/ui/components/core/SearchBox.tsx +++ b/packages/ui/components/core/SearchBox.tsx @@ -94,7 +94,7 @@ const useStyles = createStyles((theme) => ({ minWidth: 'fit-content', }, pinToLeft: { - left: `0 !important`, + left: '0 !important', }, })) diff --git a/packages/ui/components/core/SearchDistance.tsx b/packages/ui/components/core/SearchDistance.tsx index 7ea1cb78d7..f986ba1bb6 100644 --- a/packages/ui/components/core/SearchDistance.tsx +++ b/packages/ui/components/core/SearchDistance.tsx @@ -10,7 +10,7 @@ const ParamSchema = z.tuple([ z.coerce.number().gte(-180).lte(180).describe('longitude'), z.coerce.number().gte(-90).lte(90).describe('latitude'), z.coerce.number().describe('distance'), - z.literal('mi').or(z.literal('km')).describe(`'mi' or 'km'`), + z.literal('mi').or(z.literal('km')).describe("'mi' or 'km'"), ]) interface MarkItem { diff --git a/packages/ui/components/data-portal/AddressDrawer.tsx b/packages/ui/components/data-portal/AddressDrawer.tsx index 24f5cdc287..38405d6ecc 100644 --- a/packages/ui/components/data-portal/AddressDrawer.tsx +++ b/packages/ui/components/data-portal/AddressDrawer.tsx @@ -431,7 +431,7 @@ const _AddressDrawer = forwardRef(({ loca Show on org? @@ -439,7 +439,7 @@ const _AddressDrawer = forwardRef(({ loca Mailing address only? diff --git a/packages/ui/mockData/orgPhone.ts b/packages/ui/mockData/orgPhone.ts index b4e31f1502..8cc9bb2d45 100644 --- a/packages/ui/mockData/orgPhone.ts +++ b/packages/ui/mockData/orgPhone.ts @@ -4,7 +4,7 @@ export const orgPhone = { get: getTRPCMock({ path: ['orgPhone', 'get'], response: async () => { - const { default: data } = await import(`./json/orgPhone.get.json`) + const { default: data } = await import('./json/orgPhone.get.json') return data }, }), @@ -25,7 +25,7 @@ export const orgPhone = { path: ['orgPhone', 'forContactInfo'], type: 'query', response: async ({ locationOnly }) => { - const { default: data } = await import(`./json/orgPhone.forContactInfo.json`) + const { default: data } = await import('./json/orgPhone.forContactInfo.json') return locationOnly !== undefined ? data.filter((record) => record.locationOnly === locationOnly) : data }, @@ -34,7 +34,7 @@ export const orgPhone = { path: ['orgPhone', 'forEditDrawer'], type: 'query', response: async () => { - const { default: data } = await import(`./json/orgPhone.forEditDrawer.json`) + const { default: data } = await import('./json/orgPhone.forEditDrawer.json') return data }, }), @@ -42,7 +42,7 @@ export const orgPhone = { path: ['orgPhone', 'forContactInfoEdit'], type: 'query', response: async () => { - const { default: data } = await import(`./json/orgPhone.forContactInfoEdit.json`) + const { default: data } = await import('./json/orgPhone.forContactInfoEdit.json') return data }, }), diff --git a/packages/ui/theme/animation.ts b/packages/ui/theme/animation.ts index 8ca89d4ef7..b24b6f6e75 100644 --- a/packages/ui/theme/animation.ts +++ b/packages/ui/theme/animation.ts @@ -2,10 +2,10 @@ import { keyframes, rem } from '@mantine/core' export const shake = { 1: keyframes({ - '0%': { marginLeft: `0rem` }, - '25%': { marginLeft: `0.5rem` }, - '75%': { marginLeft: `-0.5rem` }, - '100%': { marginLeft: `0rem` }, + '0%': { marginLeft: '0rem' }, + '25%': { marginLeft: '0.5rem' }, + '75%': { marginLeft: '-0.5rem' }, + '100%': { marginLeft: '0rem' }, }), 2: keyframes({ '0%': { transform: `translate(${rem(1)}, ${rem(1)}) rotate(0deg)` }, @@ -29,36 +29,36 @@ export const shake = { '100%': { transform: `translate(${rem(1)}, ${rem(-2)}) rotate(-1deg)` }, }), 4: keyframes({ - '0%, 100%': { transform: `translateX(0)` }, + '0%, 100%': { transform: 'translateX(0)' }, '10%, 30%, 50%, 70%, 90%': { transform: `translateX(${rem(-10)})` }, '20%, 40%, 60%, 80%': { transform: `translateX(${rem(10)})` }, }), 5: keyframes({ - '0%': { transform: `rotate(0deg)` }, - '25%': { transform: `rotate(5deg)` }, - '50%': { transform: `rotate(0eg)` }, - '75%': { transform: `rotate(-5deg)` }, - '100%': { transform: `rotate(0deg)` }, + '0%': { transform: 'rotate(0deg)' }, + '25%': { transform: 'rotate(5deg)' }, + '50%': { transform: 'rotate(0eg)' }, + '75%': { transform: 'rotate(-5deg)' }, + '100%': { transform: 'rotate(0deg)' }, }), 6: keyframes({ - '0%': { transform: `translateX(0)` }, + '0%': { transform: 'translateX(0)' }, '25%': { transform: `translateX(${rem(5)})` }, '50%': { transform: `translateX(${rem(-5)})` }, '75%': { transform: `translateX(${rem(5)})` }, - '100%': { transform: `translateX(0)` }, + '100%': { transform: 'translateX(0)' }, }), 7: keyframes({ - '0%': { transform: `translate(0, 0) rotate(0deg)` }, + '0%': { transform: 'translate(0, 0) rotate(0deg)' }, '25%': { transform: `translate(${rem(5)}, ${rem(5)}) rotate(5deg)` }, - '50%': { transform: `translate(0, 0) rotate(0eg)` }, + '50%': { transform: 'translate(0, 0) rotate(0eg)' }, '75%': { transform: `translate(${rem(-5)}, ${rem(5)}) rotate(-5deg)` }, - '100%': { transform: `translate(0, 0) rotate(0deg)` }, + '100%': { transform: 'translate(0, 0) rotate(0deg)' }, }), } export const bounce = (distance: number) => keyframes({ - '0%, 20%, 50%, 80%, 100%': { transform: `translateY(0)` }, + '0%, 20%, 50%, 80%, 100%': { transform: 'translateY(0)' }, '40%': { transform: `translateY(${rem(-distance)})` }, '60%': { transform: `translateY(${rem(-distance / 2)})` }, })