Skip to content

Commit b6b5883

Browse files
committed
chore: lint
1 parent 2050862 commit b6b5883

File tree

6 files changed

+14
-20
lines changed

6 files changed

+14
-20
lines changed

examples/vite-vue3/src/shims-vue.d.ts

-2
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,3 @@
1-
/* eslint-disable import/no-duplicates */
2-
31
declare module '*.vue' {
42
import type { defineComponent } from 'vue'
53
const Component: ReturnType<typeof defineComponent>

examples/vue-cli/vue.config.js

-2
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,3 @@
1-
/* eslint-disable @typescript-eslint/no-var-requires */
2-
31
const ScriptSetup = require('unplugin-vue2-script-setup/webpack')
42
const Icons = require('unplugin-icons/webpack')
53
const IconsResolver = require('unplugin-icons/resolver')

package.json

+13-13
Original file line numberDiff line numberDiff line change
@@ -3,18 +3,15 @@
33
"version": "0.19.8",
44
"packageManager": "pnpm@7.1.5",
55
"description": "Components auto importing for Vue",
6-
"homepage": "https://github.com/antfu/unplugin-vue-components",
7-
"bugs": "https://github.com/antfu/unplugin-vue-components/issues",
8-
"license": "MIT",
96
"author": "antfu <anthonyfu117@hotmail.com>",
7+
"license": "MIT",
8+
"funding": "https://github.com/sponsors/antfu",
9+
"homepage": "https://github.com/antfu/unplugin-vue-components",
1010
"repository": {
1111
"type": "git",
1212
"url": "https://github.com/antfu/unplugin-vue-components"
1313
},
14-
"funding": "https://github.com/sponsors/antfu",
15-
"main": "dist/index.js",
16-
"module": "dist/index.mjs",
17-
"types": "index.d.ts",
14+
"bugs": "https://github.com/antfu/unplugin-vue-components/issues",
1815
"exports": {
1916
".": {
2017
"require": "./dist/index.js",
@@ -50,16 +47,22 @@
5047
"import": "./dist/esbuild.mjs"
5148
}
5249
},
53-
"files": [
54-
"dist"
55-
],
50+
"main": "dist/index.js",
51+
"module": "dist/index.mjs",
52+
"types": "index.d.ts",
5653
"typesVersions": {
5754
"*": {
5855
"*": [
5956
"./dist/*"
6057
]
6158
}
6259
},
60+
"files": [
61+
"dist"
62+
],
63+
"engines": {
64+
"node": ">=14"
65+
},
6366
"scripts": {
6467
"build": "tsup && esno scripts/postbuild.ts",
6568
"dev": "tsup --watch src",
@@ -118,8 +121,5 @@
118121
"vite": "^2.9.12",
119122
"vitest": "^0.15.0",
120123
"vue": "3.2.37"
121-
},
122-
"engines": {
123-
"node": ">=14"
124124
}
125125
}

scripts/postbuild.ts

-1
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,6 @@ async function run() {
1010
cwd: resolve(__dirname, '../dist'),
1111
})
1212
for (const file of files) {
13-
// eslint-disable-next-line no-console
1413
console.log('[postbuild]', basename(file))
1514
let code = await fs.readFile(file, 'utf8')
1615
code = code.replace('exports.default =', 'module.exports =')

src/core/context.ts

-1
Original file line numberDiff line numberDiff line change
@@ -170,7 +170,6 @@ export class Context {
170170
.forEach((path) => {
171171
const name = pascalCase(getNameFromFilePath(path, this.options))
172172
if (this._componentNameMap[name] && !this.options.allowOverrides) {
173-
// eslint-disable-next-line no-console
174173
console.warn(`[unplugin-vue-components] component "${name}"(${path}) has naming conflicts with other components, ignored.`)
175174
return
176175
}

src/core/fs/glob.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ export function searchComponents(ctx: Context) {
1616
})
1717

1818
if (!files.length && !ctx.options.resolvers?.length)
19-
// eslint-disable-next-line no-console
19+
2020
console.warn('[unplugin-vue-components] no components found')
2121

2222
debug(`${files.length} components found.`)

0 commit comments

Comments
 (0)