From cce437b5ce89b1eebc66f43f2c4dacd41d9eb2bc Mon Sep 17 00:00:00 2001 From: Anthony Fu Date: Thu, 7 Sep 2023 17:55:41 +0200 Subject: [PATCH] chore: lint --- .eslintrc | 3 ++- package.json | 4 ++-- playground/src/pages/in-page.vue | 1 + playground/vite.config.ts | 2 +- src/components/StarportCarrier.ts | 2 +- 5 files changed, 7 insertions(+), 5 deletions(-) diff --git a/.eslintrc b/.eslintrc index 3f0fbb4..8027176 100644 --- a/.eslintrc +++ b/.eslintrc @@ -1,6 +1,7 @@ { "extends": "@antfu", "rules": { - "vue/one-component-per-file": "off" + "vue/one-component-per-file": "off", + "n/prefer-global/process": "off" } } diff --git a/package.json b/package.json index d1bd77b..02d919f 100644 --- a/package.json +++ b/package.json @@ -22,8 +22,8 @@ "exports": { ".": { "types": "./dist/index.d.ts", - "require": "./dist/index.js", - "import": "./dist/index.mjs" + "import": "./dist/index.mjs", + "require": "./dist/index.js" } }, "main": "./dist/index.js", diff --git a/playground/src/pages/in-page.vue b/playground/src/pages/in-page.vue index 5400acf..152b349 100644 --- a/playground/src/pages/in-page.vue +++ b/playground/src/pages/in-page.vue @@ -1,5 +1,6 @@ diff --git a/playground/vite.config.ts b/playground/vite.config.ts index 9ccfbc6..b1c386d 100644 --- a/playground/vite.config.ts +++ b/playground/vite.config.ts @@ -1,6 +1,6 @@ /// -import path from 'path' +import path from 'node:path' import { defineConfig } from 'vite' import Vue from '@vitejs/plugin-vue' import Pages from 'vite-plugin-pages' diff --git a/src/components/StarportCarrier.ts b/src/components/StarportCarrier.ts index 167ba28..234d72b 100644 --- a/src/components/StarportCarrier.ts +++ b/src/components/StarportCarrier.ts @@ -26,4 +26,4 @@ export const StarportCarrier = defineComponent({ ] } }, -}) as DefineComponent<{}> +}) as DefineComponent>