Skip to content

Commit 969f2d3

Browse files
committed
chore: lint
1 parent 81f3230 commit 969f2d3

File tree

13 files changed

+19
-19
lines changed

13 files changed

+19
-19
lines changed

examples/vite-vue3/vite.config.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import path from 'path'
1+
import path from 'node:path'
22
import type { UserConfig } from 'vite'
33
import Vue from '@vitejs/plugin-vue'
44
import Components from 'unplugin-vue-components/vite'

package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -84,8 +84,8 @@
8484
},
8585
"peerDependencies": {
8686
"@babel/parser": "^7.15.8",
87-
"vue": "2 || 3",
88-
"@nuxt/kit": "^3.2.2"
87+
"@nuxt/kit": "^3.2.2",
88+
"vue": "2 || 3"
8989
},
9090
"peerDependenciesMeta": {
9191
"@babel/parser": {

scripts/postbuild.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
1-
import { basename, resolve } from 'path'
2-
import { promises as fs } from 'fs'
1+
import { basename, resolve } from 'node:path'
2+
import { promises as fs } from 'node:fs'
33
import fg from 'fast-glob'
44

55
async function run() {

src/core/context.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
1-
import { relative } from 'path'
2-
import type fs from 'fs'
1+
import { relative } from 'node:path'
2+
import type fs from 'node:fs'
33
import Debug from 'debug'
44
import type { UpdatePayload, ViteDevServer } from 'vite'
55
import { slash, throttle, toArray } from '@antfu/utils'

src/core/declaration.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
1-
import { dirname, isAbsolute, relative } from 'path'
2-
import { existsSync } from 'fs'
3-
import { mkdir, readFile, writeFile as writeFile_ } from 'fs/promises'
1+
import { dirname, isAbsolute, relative } from 'node:path'
2+
import { existsSync } from 'node:fs'
3+
import { mkdir, readFile, writeFile as writeFile_ } from 'node:fs/promises'
44
import { notNullish, slash } from '@antfu/utils'
55
import type { ComponentInfo } from '../../dist'
66
import type { Options } from '../types'

src/core/options.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import { join, resolve } from 'path'
1+
import { join, resolve } from 'node:path'
22
import { slash, toArray } from '@antfu/utils'
33
import { getPackageInfoSync, isPackageExists } from 'local-pkg'
44
import type { ComponentResolver, ComponentResolverObject, Options, ResolvedOptions } from '../types'

src/core/resolvers/quasar.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import { promises as fs } from 'fs'
1+
import { promises as fs } from 'node:fs'
22
import { resolveModule } from 'local-pkg'
33
import type { ComponentResolver } from '../../types'
44

src/core/resolvers/veui.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import { join, normalize } from 'path'
1+
import { join, normalize } from 'node:path'
22
import type { ComponentResolver, SideEffectsInfo } from '../../types'
33
import { camelCase, kebabCase, pascalCase, resolveImportPath } from '../utils'
44

src/core/resolvers/vueuse-directive.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import { readFileSync } from 'fs'
1+
import { readFileSync } from 'node:fs'
22
import { resolveModule } from 'local-pkg'
33
import type { ComponentResolver } from '../../types'
44

src/core/resolvers/vueuse.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import { readFileSync } from 'fs'
1+
import { readFileSync } from 'node:fs'
22
import { resolveModule } from 'local-pkg'
33
import type { ComponentResolver } from '../../types'
44

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy