Skip to content

Commit

Permalink
style: refactor to single quote
Browse files Browse the repository at this point in the history
  • Loading branch information
remarkablemark committed Jan 15, 2024
1 parent f80964b commit e6533ad
Show file tree
Hide file tree
Showing 4 changed files with 19 additions and 18 deletions.
1 change: 1 addition & 0 deletions .prettierrc.json
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
{
"singleQuote": true,
"semi": false
}
10 changes: 5 additions & 5 deletions src/main.ts
Original file line number Diff line number Diff line change
@@ -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()))
22 changes: 11 additions & 11 deletions src/vite-env.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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
}
4 changes: 2 additions & 2 deletions vite.config.mts
Original file line number Diff line number Diff line change
@@ -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: {
Expand Down

0 comments on commit e6533ad

Please sign in to comment.