Skip to content

Commit

Permalink
chore: lint
Browse files Browse the repository at this point in the history
  • Loading branch information
antfu committed Apr 3, 2022
1 parent 2771c44 commit c397847
Show file tree
Hide file tree
Showing 3 changed files with 22 additions and 20 deletions.
39 changes: 20 additions & 19 deletions packages/ui/client/components/Modal.vue
Original file line number Diff line number Diff line change
@@ -1,22 +1,3 @@
<template>
<div
class="fixed inset-0 z-40"
:class="modelValue ? '': 'pointer-events-none'"
>
<div
class="bg-base inset-0 absolute transition-opacity duration-500 ease-out"
:class="modelValue ? 'opacity-50': 'opacity-0'"
@click="$emit('update:modelValue', false)"
/>
<div
class="bg-base border-base absolute transition-all duration-200 ease-out"
:class="[positionClass, 'scrolls']"
:style="modelValue ? {}: {transform}"
>
<slot />
</div>
</div>
</template>

<script setup lang='ts'>
const props = withDefaults(defineProps<{
Expand Down Expand Up @@ -61,3 +42,23 @@ const transform = computed(() => {
}
})
</script>

<template>
<div
class="fixed inset-0 z-40"
:class="modelValue ? '': 'pointer-events-none'"
>
<div
class="bg-base inset-0 absolute transition-opacity duration-500 ease-out"
:class="modelValue ? 'opacity-50': 'opacity-0'"
@click="$emit('update:modelValue', false)"
/>
<div
class="bg-base border-base absolute transition-all duration-200 ease-out"
:class="[positionClass, 'scrolls']"
:style="modelValue ? {}: {transform}"
>
<slot />
</div>
</div>
</template>
1 change: 1 addition & 0 deletions packages/vitest/src/integrations/globals.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ import * as index from '../index'
export function registerApiGlobally() {
globalApis.forEach((api) => {
// @ts-expect-error I know what I am doing :P
// eslint-disable-next-line import/namespace
globalThis[api] = index[api]
})
}
2 changes: 1 addition & 1 deletion packages/vitest/src/runtime/collect.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { performance } from 'perf_hooks'
import { relative } from 'path'
import { relative } from 'pathe'
import type { File, ResolvedConfig, Suite, TaskBase } from '../types'
import { clearContext, defaultSuite } from './suite'
import { getHooks, setHooks } from './map'
Expand Down

0 comments on commit c397847

Please sign in to comment.