Add import order prettier plugin

This commit is contained in:
2025-04-04 02:10:40 +02:00
parent c3dad3681c
commit 422702b16f
15 changed files with 175 additions and 29 deletions

View File

@ -1,8 +1,7 @@
import './shared';
import type { Match } from '~/lib/match';
import { getMatch, type Match } from '~/lib/match';
import { Redirect, UrlReferer } from '~/lib/settings';
import { getMatch } from '~/lib/match';
chrome.webRequest.onBeforeSendHeaders.addListener(
// eslint-disable-next-line @typescript-eslint/ban-ts-comment

View File

@ -1,4 +1,4 @@
import { getMatch, type Match, MatchMediaType } from '~/lib/match';
import { getMatch, MatchMediaType, type Match } from '~/lib/match';
import { Other, Redirect } from '~/lib/settings';
async function main() {

View File

@ -1,6 +1,6 @@
<script lang="ts">
import { play } from '~/entries/player/player';
import { onMount } from 'svelte';
import { play } from '~/entries/player/player';
let errorMessage: string | null = $state(null);

View File

@ -6,8 +6,8 @@
</head>
<body>
<script type="module">
import Player from '~/entries/player/Player.svelte';
import { mount } from 'svelte';
import Player from '~/entries/player/Player.svelte';
mount(Player, {
target: document.body

View File

@ -1,5 +1,5 @@
import { matches, MatchMediaType } from '~/lib/match';
import Hls from 'hls.js';
import { matches, MatchMediaType } from '~/lib/match';
import { UrlReferer } from '~/lib/settings';
async function playNative(url: string, domain: string, videoElem: HTMLVideoElement) {

View File

@ -1,5 +1,5 @@
<script lang="ts">
import { type Match, matches } from '~/lib/match';
import { matches, type Match } from '~/lib/match';
import { Hosters, Other } from '~/lib/settings';
import Toggle from './toggle.svelte';

View File

@ -7,8 +7,8 @@
</head>
<body style="overflow-y: scroll">
<script type="module">
import Popup from '~/entries/popup/Popup.svelte';
import { mount } from 'svelte';
import Popup from '~/entries/popup/Popup.svelte';
mount(Popup, {
target: document.body

View File

@ -1,6 +1,6 @@
import { unpack } from './util/userspace';
import { Hosters, Redirect, TmpHost } from './settings';
import { lastPathSegment } from './util/extract';
import { unpack } from './util/userspace';
export interface Match {
name: string;

View File

@ -1,5 +1,4 @@
import type { Match } from './match';
import { matches } from './match';
import { matches, type Match } from './match';
export const Hosters = {
getDisabled: async () => {