From e6533ad7c337d87c252962521e4ed82b4a8f2edb Mon Sep 17 00:00:00 2001 From: Mark Date: Sun, 14 Jan 2024 20:05:41 -0500 Subject: [PATCH] style: refactor to single quote --- .prettierrc.json | 1 + src/main.ts | 10 +++++----- src/vite-env.d.ts | 22 +++++++++++----------- vite.config.mts | 4 ++-- 4 files changed, 19 insertions(+), 18 deletions(-) diff --git a/.prettierrc.json b/.prettierrc.json index cce9d3c..fd496a8 100644 --- a/.prettierrc.json +++ b/.prettierrc.json @@ -1,3 +1,4 @@ { + "singleQuote": true, "semi": false } diff --git a/src/main.ts b/src/main.ts index 08cea01..9a84695 100644 --- a/src/main.ts +++ b/src/main.ts @@ -1,13 +1,13 @@ -import "kaboom/global" +import 'kaboom/global' -import kaboom from "kaboom" +import kaboom from 'kaboom' -import bean from "/sprites/bean.png" +import bean from '/sprites/bean.png' kaboom() -loadSprite("bean", bean) +loadSprite('bean', bean) -add([pos(120, 80), sprite("bean")]) +add([pos(120, 80), sprite('bean')]) onClick(() => addKaboom(mousePos())) diff --git a/src/vite-env.d.ts b/src/vite-env.d.ts index 45da955..5968a57 100644 --- a/src/vite-env.d.ts +++ b/src/vite-env.d.ts @@ -8,57 +8,57 @@ interface ImportMeta { readonly env: ImportMetaEnv } -declare module "*.avif" { +declare module '*.avif' { const src: string export default src } -declare module "*.bmp" { +declare module '*.bmp' { const src: string export default src } -declare module "*.gif" { +declare module '*.gif' { const src: string export default src } -declare module "*.jpg" { +declare module '*.jpg' { const src: string export default src } -declare module "*.jpeg" { +declare module '*.jpeg' { const src: string export default src } -declare module "*.png" { +declare module '*.png' { const src: string export default src } -declare module "*.webp" { +declare module '*.webp' { const src: string export default src } -declare module "*.svg" { +declare module '*.svg' { const src: string export default src } -declare module "*.ogg" { +declare module '*.ogg' { const src: string export default src } -declare module "*.mp3" { +declare module '*.mp3' { const src: string export default src } -declare module "*.wav" { +declare module '*.wav' { const src: string export default src } diff --git a/vite.config.mts b/vite.config.mts index c811192..f197064 100644 --- a/vite.config.mts +++ b/vite.config.mts @@ -1,5 +1,5 @@ -import { defineConfig } from "vite" -import { createHtmlPlugin } from "vite-plugin-html" +import { defineConfig } from 'vite' +import { createHtmlPlugin } from 'vite-plugin-html' export default defineConfig({ build: {