lint: apply pretty import

This commit is contained in:
pa
2025-10-15 09:08:38 +09:00
committed by Natsumi
parent bed76e0ad8
commit afbb6dfa47
203 changed files with 3502 additions and 1441 deletions

View File

@@ -1,16 +1,16 @@
import {
compareByName,
compareByCreatedAt,
compareByCreatedAtAscending,
compareByUpdatedAt,
compareByDisplayName,
compareByMemberCount,
compareByPrivate,
compareByStatus,
compareByLastActive,
compareByLastSeen,
compareByLocation,
compareByLocationAt,
compareByLocation
compareByMemberCount,
compareByName,
compareByPrivate,
compareByStatus,
compareByUpdatedAt
} from '../compare';
describe('Compare Functions', () => {

View File

@@ -1,4 +1,4 @@
import { sortStatus, isFriendOnline } from '../friend';
import { isFriendOnline, sortStatus } from '../friend';
describe('Friend Utils', () => {
describe('sortStatus', () => {

View File

@@ -1,7 +1,7 @@
import {
getEmojiFileName,
getPrintFileName,
getPrintLocalDate,
getEmojiFileName
getPrintLocalDate
} from '../gallery';
describe('Gallery Utils', () => {

View File

@@ -1,4 +1,4 @@
import { parseLocation, displayLocation } from '../location';
import { displayLocation, parseLocation } from '../location';
describe('Location Utils', () => {
describe('parseLocation', () => {

View File

@@ -1,5 +1,5 @@
import { useAuthStore } from '../../stores';
import { replaceBioSymbols } from './common';
import { useAuthStore } from '../../stores';
/**
*

View File

@@ -1,10 +1,10 @@
import {
changeLogRemoveLinks,
commaNumber,
escapeTag,
escapeTagRecursive,
textToHex,
commaNumber,
localeIncludes,
changeLogRemoveLinks
textToHex
} from '../string';
describe('String Utils', () => {

View File

@@ -1,10 +1,10 @@
import { useAvatarStore, useWorldStore } from '../../../stores';
import { compareUnityVersion } from '../avatar';
import {
extractFileId,
extractFileVersion,
extractVariantVersion
} from '../common';
import { useAvatarStore, useWorldStore } from '../../../stores';
import { compareUnityVersion } from '../avatar';
/**
*

View File

@@ -1,7 +1,8 @@
import { ElMessage } from 'element-plus';
import { storeToRefs } from 'pinia';
import { useAppearanceSettingsStore, useUiStore } from '../../../stores';
import { THEME_CONFIG } from '../../constants';
import { ElMessage } from 'element-plus';
import { i18n } from '../../../plugin/i18n';
/**

View File

@@ -1,15 +1,17 @@
import Noty from 'noty';
import { ElMessage, ElMessageBox } from 'element-plus';
import { storeToRefs } from 'pinia';
import { ElMessageBox, ElMessage } from 'element-plus';
import { miscRequest } from '../../api';
import Noty from 'noty';
import {
useAvatarStore,
useInstanceStore,
useWorldStore,
useSearchStore
useSearchStore,
useWorldStore
} from '../../stores';
import { compareUnityVersion } from './avatar';
import { escapeTag } from './base/string';
import { miscRequest } from '../../api';
/**
*

View File

@@ -96,10 +96,7 @@ function compareByDisplayName(a, b) {
* @returns
*/
function compareById(a, b) {
if (
typeof a.id !== 'string' ||
typeof b.id !== 'string'
) {
if (typeof a.id !== 'string' || typeof b.id !== 'string') {
return 0;
}
return a.id.localeCompare(b.id);

View File

@@ -47,7 +47,10 @@ export function handleImageUploadInput(event, options = {}) {
const file = files[0];
if (file.size >= maxSize) {
if (tooLargeMessage) {
ElMessage({ message: resolveMessage(tooLargeMessage), type: 'error' });
ElMessage({
message: resolveMessage(tooLargeMessage),
type: 'error'
});
}
clearInput();
return { file: null, clearInput };
@@ -55,12 +58,18 @@ export function handleImageUploadInput(event, options = {}) {
let acceptRegex = null;
if (acceptPattern) {
acceptRegex = acceptPattern instanceof RegExp ? acceptPattern : new RegExp(acceptPattern);
acceptRegex =
acceptPattern instanceof RegExp
? acceptPattern
: new RegExp(acceptPattern);
}
if (acceptRegex && !acceptRegex.test(file.type)) {
if (invalidTypeMessage) {
ElMessage({ message: resolveMessage(invalidTypeMessage), type: 'error' });
ElMessage({
message: resolveMessage(invalidTypeMessage),
type: 'error'
});
}
clearInput();
return { file: null, clearInput };

View File

@@ -1,8 +1,8 @@
import { useAppearanceSettingsStore, useUserStore } from '../../stores';
import { languageMappings } from '../constants';
import { timeToText } from './base/format';
import { HueToHex } from './base/ui';
import { convertFileUrlToImageUrl } from './common';
import { languageMappings } from '../constants';
import { timeToText } from './base/format';
/**
*

View File

@@ -1,6 +1,7 @@
import { worldRequest } from '../../api';
import { parseLocation } from './location';
import { rpcWorlds } from '../constants';
import { worldRequest } from '../../api';
/**
*
* @param {string} location