Skip to content

Commit

Permalink
chore: lint
Browse files Browse the repository at this point in the history
  • Loading branch information
antfu committed Jun 3, 2022
1 parent f663276 commit bc306c5
Show file tree
Hide file tree
Showing 6 changed files with 1 addition and 6 deletions.
2 changes: 1 addition & 1 deletion examples/quasar/src/shims.d.ts
Expand Up @@ -5,7 +5,7 @@
// Mocks all files ending in `.vue` showing them as plain Vue instances
declare module '*.vue' {
import type { DefineComponent } from 'vue'
// eslint-disable-next-line @typescript-eslint/no-explicit-any, @typescript-eslint/ban-types

const component: DefineComponent<{}, {}, any>
export default component
}
1 change: 0 additions & 1 deletion packages/core/src/types.ts
Expand Up @@ -3,7 +3,6 @@ import type MagicString from 'magic-string'
import type { UnoGenerator } from './generator'
import type { BetterMap } from './utils'

/* eslint-disable no-use-before-define */
export type Awaitable<T> = T | Promise<T>
export type Arrayable<T> = T | T[]
export type ArgumentType<T> = T extends ((...args: infer A) => any) ? A : never
Expand Down
1 change: 0 additions & 1 deletion packages/core/src/utils/events.ts
Expand Up @@ -2,7 +2,6 @@

type EventsMap = Record<string, any>

// eslint-disable-next-line @typescript-eslint/consistent-indexed-object-style
interface DefaultEvents extends EventsMap {
[event: string]: (...args: any) => void
}
Expand Down
1 change: 0 additions & 1 deletion packages/shared-docs/src/config.ts
Expand Up @@ -35,7 +35,6 @@ export async function evaluateUserConfig<U = UserConfig>(configStr: string): Pro
return modulesCache.get(name)
}

// eslint-disable-next-line no-new-func
const fn = new AsyncFunction('__import', code)
const result = await fn(__import)

Expand Down
1 change: 0 additions & 1 deletion packages/vite/src/client.ts
@@ -1,4 +1,3 @@
// eslint-disable-next-line @typescript-eslint/triple-slash-reference
/// <reference types="vite/client" />
/// <reference lib="dom" />

Expand Down
1 change: 0 additions & 1 deletion test/dts/shims.d.ts
@@ -1,4 +1,3 @@
/* eslint-disable @typescript-eslint/no-empty-interface */
import type { AttributifyAttributes } from '@unocss/preset-attributify'

declare module 'react' {
Expand Down

0 comments on commit bc306c5

Please sign in to comment.