Skip to content

Commit

Permalink
Merge pull request #3 from 2skydev/dev
Browse files Browse the repository at this point in the history
fix(import-sort): import 정렬 적용
  • Loading branch information
2skydev authored May 26, 2024
2 parents 12796f6 + 85bff22 commit 566e9ee
Show file tree
Hide file tree
Showing 7 changed files with 17 additions and 13 deletions.
3 changes: 2 additions & 1 deletion .prettierrc
Original file line number Diff line number Diff line change
Expand Up @@ -18,5 +18,6 @@
"^\\..+$"
],
"importOrderSeparation": true,
"importOrderParserPlugins": ["typescript", "decorators", "jsx"]
"importOrderParserPlugins": ["typescript", "decorators", "jsx"],
"plugins": ["@trivago/prettier-plugin-sort-imports"]
}
4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
"typecheck:web": "tsc --noEmit -p tsconfig.web.json --composite false",
"typecheck": "pnpm typecheck:node && pnpm typecheck:web",
"postinstall": "electron-builder install-app-deps",
"format": "prettier --write .",
"format": "prettier --write ./src",
"g": "node generator.mjs"
},
"dependencies": {
Expand Down Expand Up @@ -64,4 +64,4 @@
"typescript": "^5.4.5",
"vite": "^5.2.11"
}
}
}
3 changes: 2 additions & 1 deletion src/main/modules/electron/electron.controller.ts
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
import { app } from 'electron'

import { Injectable } from '@nestjs/common'
import i18next from 'i18next'

Expand All @@ -7,7 +9,6 @@ import { IPCSender } from '@main/modules/electron/decorators/ipc-sender.decorato
import { ELECTRON_MAIN_WINDOW_KEY } from '@main/modules/electron/electron.constants'
import { ElectronService } from '@main/modules/electron/electron.service'
import type { AppControlAction } from '@main/modules/electron/types/app-control.type'
import { app } from 'electron'

@Injectable()
export class ElectronController {
Expand Down
1 change: 0 additions & 1 deletion src/main/modules/update/update.module.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
import { Module } from '@nestjs/common'

import { ElectronModule } from '@main/modules/electron/electron.module'

import { UpdateController } from '@main/modules/update/update.controller'
import { UpdateService } from '@main/modules/update/update.service'

Expand Down
7 changes: 4 additions & 3 deletions src/renderer/src/index.tsx
Original file line number Diff line number Diff line change
@@ -1,9 +1,10 @@
import FileSystemRouter from '@renderer/components/FileSystemRouter/FileSystemRouter'
import i18next from 'i18next'

import ReactDOM from 'react-dom/client'
import { initReactI18next } from 'react-i18next'

import i18next from 'i18next'

import FileSystemRouter from '@renderer/components/FileSystemRouter/FileSystemRouter'

const currentResource = await window.electron.getCurrentI18nextResource()

await i18next.use(initReactI18next).init({
Expand Down
6 changes: 3 additions & 3 deletions src/renderer/src/pages/index.tsx
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
import '@renderer/assets/main.css'
import { Link } from 'react-router-dom'

import Versions from '@renderer/components/Versions'
import electronLogo from '@renderer/assets/electron.svg'
import { Link } from 'react-router-dom'
import '@renderer/assets/main.css'
import Versions from '@renderer/components/Versions'

function HomePage(): JSX.Element {
return (
Expand Down
6 changes: 4 additions & 2 deletions src/renderer/src/pages/windows/update-loading.tsx
Original file line number Diff line number Diff line change
@@ -1,9 +1,11 @@
import { useEffect, useState } from 'react'
import { useTranslation } from 'react-i18next'
import '@renderer/assets/update-loading.css'
import logoImage from '@renderer/assets/electron.svg'

import useSWR from 'swr'

import logoImage from '@renderer/assets/electron.svg'
import '@renderer/assets/update-loading.css'

const UpdateLoadingPage = () => {
const { t } = useTranslation('translation', {
keyPrefix: 'renderer.updateLoading',
Expand Down

0 comments on commit 566e9ee

Please sign in to comment.