From b784408ab4c56e3a4ac6377f2712b71d885e8eac Mon Sep 17 00:00:00 2001 From: jaw <2135326728@qq.com> Date: Mon, 12 Jun 2023 17:11:03 +0800 Subject: [PATCH] chore: lint --- .eslintignore | 1 + .github/workflows/test.yml | 2 +- README.md | 7 +++-- examples/vue-cli/vue.config.cjs | 2 -- jest.js | 1 - package.json | 50 ++++++++++++++++----------------- scripts/postbuild.ts | 5 ++-- 7 files changed, 34 insertions(+), 34 deletions(-) diff --git a/.eslintignore b/.eslintignore index de4d1f0..8704933 100644 --- a/.eslintignore +++ b/.eslintignore @@ -1,2 +1,3 @@ dist node_modules +*.vue diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index e95ac20..fde9231 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -31,7 +31,7 @@ jobs: uses: actions/setup-node@v2 with: node-version: ${{ matrix.node }} - cache: "pnpm" + cache: pnpm - uses: actions/checkout@v2 diff --git a/README.md b/README.md index ed25f76..a533cd9 100644 --- a/README.md +++ b/README.md @@ -79,6 +79,7 @@ npm i -D @vue/cli-plugin-typescript vue-tsc ```ts const ScriptSetup = require('unplugin-vue2-script-setup/webpack').default + module.exports = { parallel: false, configureWebpack: { @@ -113,6 +114,7 @@ And then use [`vue-tsc`](https://github.com/johnsoncodehk/volar) to do the type ```ts // webpack.config.js const ScriptSetup = require('unplugin-vue2-script-setup/webpack').default + module.exports = { /* ... */ plugins: [ @@ -148,6 +150,7 @@ export default { // esbuild.config.js import { build } from 'esbuild' import ScriptSetup from 'unplugin-vue2-script-setup/esbuild' + build({ /* ... */ plugins: [ @@ -230,11 +233,11 @@ Volar preferentially supports Vue 3. Vue 3 and Vue 2 template has some different ```jsonc { "compilerOptions": { - ... + // ... }, "vueCompilerOptions": { "experimentalCompatMode": 2 - }, + } } ``` diff --git a/examples/vue-cli/vue.config.cjs b/examples/vue-cli/vue.config.cjs index 1503cd4..cfe8aca 100644 --- a/examples/vue-cli/vue.config.cjs +++ b/examples/vue-cli/vue.config.cjs @@ -1,5 +1,3 @@ -/* eslint-disable @typescript-eslint/no-var-requires */ - const { defineConfig } = require('@vue/cli-service') const ScriptSetup = require('unplugin-vue2-script-setup/webpack').default diff --git a/jest.js b/jest.js index dcd4584..802eaa6 100644 --- a/jest.js +++ b/jest.js @@ -1,4 +1,3 @@ -/* eslint-disable @typescript-eslint/no-var-requires */ const { transform } = require('./dist/index') function requireVueJest() { diff --git a/package.json b/package.json index a46bf30..996dbf7 100644 --- a/package.json +++ b/package.json @@ -3,66 +3,66 @@ "version": "0.11.4", "packageManager": "pnpm@8.6.0", "description": "Bring