Skip to content

Commit

Permalink
chore: lint
Browse files Browse the repository at this point in the history
  • Loading branch information
antfu committed Mar 6, 2023
1 parent 81f3230 commit 969f2d3
Show file tree
Hide file tree
Showing 13 changed files with 19 additions and 19 deletions.
2 changes: 1 addition & 1 deletion examples/vite-vue3/vite.config.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import path from 'path'
import path from 'node:path'
import type { UserConfig } from 'vite'
import Vue from '@vitejs/plugin-vue'
import Components from 'unplugin-vue-components/vite'
Expand Down
4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -84,8 +84,8 @@
},
"peerDependencies": {
"@babel/parser": "^7.15.8",
"vue": "2 || 3",
"@nuxt/kit": "^3.2.2"
"@nuxt/kit": "^3.2.2",
"vue": "2 || 3"
},
"peerDependenciesMeta": {
"@babel/parser": {
Expand Down
4 changes: 2 additions & 2 deletions scripts/postbuild.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { basename, resolve } from 'path'
import { promises as fs } from 'fs'
import { basename, resolve } from 'node:path'
import { promises as fs } from 'node:fs'
import fg from 'fast-glob'

async function run() {
Expand Down
4 changes: 2 additions & 2 deletions src/core/context.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { relative } from 'path'
import type fs from 'fs'
import { relative } from 'node:path'
import type fs from 'node:fs'
import Debug from 'debug'
import type { UpdatePayload, ViteDevServer } from 'vite'
import { slash, throttle, toArray } from '@antfu/utils'
Expand Down
6 changes: 3 additions & 3 deletions src/core/declaration.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import { dirname, isAbsolute, relative } from 'path'
import { existsSync } from 'fs'
import { mkdir, readFile, writeFile as writeFile_ } from 'fs/promises'
import { dirname, isAbsolute, relative } from 'node:path'
import { existsSync } from 'node:fs'
import { mkdir, readFile, writeFile as writeFile_ } from 'node:fs/promises'
import { notNullish, slash } from '@antfu/utils'
import type { ComponentInfo } from '../../dist'
import type { Options } from '../types'
Expand Down
2 changes: 1 addition & 1 deletion src/core/options.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { join, resolve } from 'path'
import { join, resolve } from 'node:path'
import { slash, toArray } from '@antfu/utils'
import { getPackageInfoSync, isPackageExists } from 'local-pkg'
import type { ComponentResolver, ComponentResolverObject, Options, ResolvedOptions } from '../types'
Expand Down
2 changes: 1 addition & 1 deletion src/core/resolvers/quasar.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { promises as fs } from 'fs'
import { promises as fs } from 'node:fs'
import { resolveModule } from 'local-pkg'
import type { ComponentResolver } from '../../types'

Expand Down
2 changes: 1 addition & 1 deletion src/core/resolvers/veui.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { join, normalize } from 'path'
import { join, normalize } from 'node:path'
import type { ComponentResolver, SideEffectsInfo } from '../../types'
import { camelCase, kebabCase, pascalCase, resolveImportPath } from '../utils'

Expand Down
2 changes: 1 addition & 1 deletion src/core/resolvers/vueuse-directive.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { readFileSync } from 'fs'
import { readFileSync } from 'node:fs'
import { resolveModule } from 'local-pkg'
import type { ComponentResolver } from '../../types'

Expand Down
2 changes: 1 addition & 1 deletion src/core/resolvers/vueuse.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { readFileSync } from 'fs'
import { readFileSync } from 'node:fs'
import { resolveModule } from 'local-pkg'
import type { ComponentResolver } from '../../types'

Expand Down
2 changes: 1 addition & 1 deletion src/core/unplugin.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { existsSync } from 'fs'
import { existsSync } from 'node:fs'
import { createUnplugin } from 'unplugin'
import { createFilter } from '@rollup/pluginutils'
import chokidar from 'chokidar'
Expand Down
2 changes: 1 addition & 1 deletion src/core/utils.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { parse } from 'path'
import { parse } from 'node:path'
import minimatch from 'minimatch'
import resolve from 'resolve'
import { slash, toArray } from '@antfu/utils'
Expand Down
4 changes: 2 additions & 2 deletions test/dts.test.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { readFile, writeFile } from 'fs/promises'
import path from 'path'
import { readFile, writeFile } from 'node:fs/promises'
import path from 'node:path'
import { describe, expect, test } from 'vitest'
import type { ComponentResolver } from '../src'
import { Context } from '../src/core/context'
Expand Down

0 comments on commit 969f2d3

Please sign in to comment.