Skip to content
This repository has been archived by the owner on Feb 24, 2024. It is now read-only.

Commit

Permalink
format: fix import order
Browse files Browse the repository at this point in the history
  • Loading branch information
neko-para committed Aug 9, 2023
1 parent 8872279 commit dd2aa08
Show file tree
Hide file tree
Showing 8 changed files with 25 additions and 12 deletions.
8 changes: 7 additions & 1 deletion .prettierrc.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,13 @@
"arrowParens": "avoid",
"trailingComma": "none",

"importOrder": ["^(?!@/).*(?<!\\.vue)$", "(?<!\\.vue)$", ""],
"importOrder": [
"^(?!@/|\\.).*(?<!\\.vue)$",
"^(?!@/).*(?<!\\.vue)$",
"^(?!\\.).*(?<!\\.vue)$",
"(?<!\\.vue)$",
""
],
"importOrderSeparation": true,
"importOrderSortSpecifiers": true,

Expand Down
9 changes: 5 additions & 4 deletions src/App.vue
Original file line number Diff line number Diff line change
@@ -1,8 +1,4 @@
<script setup lang="ts">
import { active } from './data'
import { getTask, setTask } from './data/task'
import { history } from './history'
import { loadFS, saveFS } from './loader'
import {
FileDownloadOutlined,
FileUploadOutlined,
Expand All @@ -15,6 +11,11 @@ import { produce } from 'immer'
import { NButton, NCard, NIcon } from 'naive-ui'
import { computed, onMounted, ref } from 'vue'
import { active } from './data'
import { getTask, setTask } from './data/task'
import { history } from './history'
import { loadFS, saveFS } from './loader'
import { fs } from '@/data/fs'
import TaskEdit from '@/components/TaskEdit.vue'
Expand Down
3 changes: 2 additions & 1 deletion src/components/TaskTree.vue
Original file line number Diff line number Diff line change
@@ -1,9 +1,10 @@
<script setup lang="ts">
import { renderLabel, renderPrefix, renderSuffix } from './TaskTreeRender'
import { SearchOutlined } from '@vicons/material'
import { NIcon, NInput, NTree } from 'naive-ui'
import { computed, ref } from 'vue'
import { renderLabel, renderPrefix, renderSuffix } from './TaskTreeRender'
import { active, navigate } from '@/data'
import { fsTree } from '@/data/fs'
Expand Down
5 changes: 3 additions & 2 deletions src/data.ts
Original file line number Diff line number Diff line change
@@ -1,10 +1,11 @@
import { produce } from 'immer'
import { computed } from 'vue'

import { fs } from './data/fs'
import { delTask, getTask, setTask, taskIndex } from './data/task'
import { FS, Util } from './fs'
import { history } from './history'
import type { Task } from './types'
import { produce } from 'immer'
import { computed } from 'vue'

export interface TaskData {
[task: string]: Task
Expand Down
3 changes: 2 additions & 1 deletion src/data/image.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
import { fs } from './fs'
import { computed } from 'vue'

import { fs } from './fs'

import { Util } from '@/fs'

export const imgIndex = computed(() => {
Expand Down
3 changes: 2 additions & 1 deletion src/data/task.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
import { fs } from './fs'
import { computed } from 'vue'

import { fs } from './fs'

import { type TaskData } from '@/data'
import { Util } from '@/fs'
import type { Task } from '@/types'
Expand Down
3 changes: 2 additions & 1 deletion src/loader.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
import axios from 'axios'

import { fs } from './data/fs'
import { FS } from './fs'
import axios from 'axios'

async function loadZip() {
const res: ArrayBuffer = (
Expand Down
3 changes: 2 additions & 1 deletion src/main.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
import './main.css'
import { createApp } from 'vue'

import './main.css'

import Wrapper from './Wrapper.vue'

const meta = document.createElement('meta')
Expand Down

0 comments on commit dd2aa08

Please sign in to comment.