Skip to content

Commit

Permalink
chore: fix ESLint errors
Browse files Browse the repository at this point in the history
  • Loading branch information
cloydlau committed Sep 6, 2024
1 parent 256cb7e commit 447dd8c
Show file tree
Hide file tree
Showing 15 changed files with 25 additions and 25 deletions.
2 changes: 1 addition & 1 deletion demo/nuxt2+vue2.6/pages/index.vue
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<script>
import Vue from 'vue'
import VueCompositionAPI from '@vue/composition-api'
import Vue from 'vue'
Vue.use(VueCompositionAPI)
Expand Down
2 changes: 1 addition & 1 deletion demo/nuxt2+vue2.7/plugins/JsonEditorVue.client.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import Vue from 'vue'
import JsonEditorVue from 'json-editor-vue'
import Vue from 'vue'

Vue.use(JsonEditorVue)
2 changes: 1 addition & 1 deletion demo/vue-cli2/build/build.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,9 @@ require('./check-versions')()
process.env.NODE_ENV = 'production'

const path = require('node:path')
const chalk = require('chalk')
const ora = require('ora')
const rm = require('rimraf')
const chalk = require('chalk')
const webpack = require('webpack')
const config = require('../config')
const webpackConfig = require('./webpack.prod.conf')
Expand Down
8 changes: 4 additions & 4 deletions demo/vue-cli2/build/webpack.dev.conf.js
Original file line number Diff line number Diff line change
@@ -1,15 +1,15 @@
/* eslint-disable node/prefer-global/process */
'use strict'
const path = require('node:path')
const merge = require('webpack-merge')
const webpack = require('webpack')
const CopyWebpackPlugin = require('copy-webpack-plugin')
const HtmlWebpackPlugin = require('html-webpack-plugin')
const FriendlyErrorsPlugin = require('friendly-errors-webpack-plugin')
const HtmlWebpackPlugin = require('html-webpack-plugin')
const portfinder = require('portfinder')
const webpack = require('webpack')
const merge = require('webpack-merge')
const config = require('../config')
const baseWebpackConfig = require('./webpack.base.conf')
const utils = require('./utils')
const baseWebpackConfig = require('./webpack.base.conf')

const HOST = process.env.HOST
const PORT = process.env.PORT && Number(process.env.PORT)
Expand Down
8 changes: 4 additions & 4 deletions demo/vue-cli2/build/webpack.prod.conf.js
Original file line number Diff line number Diff line change
@@ -1,17 +1,17 @@
'use strict'
const path = require('node:path')
const webpack = require('webpack')
const merge = require('webpack-merge')
const CopyWebpackPlugin = require('copy-webpack-plugin')
const HtmlWebpackPlugin = require('html-webpack-plugin')
const ExtractTextPlugin = require('extract-text-webpack-plugin')
const HtmlWebpackPlugin = require('html-webpack-plugin')
const OptimizeCSSPlugin = require('optimize-css-assets-webpack-plugin')
const UglifyJsPlugin = require('uglifyjs-webpack-plugin')
const webpack = require('webpack')
const merge = require('webpack-merge')
const config = require('../config')

const env = require('../config/prod.env')
const baseWebpackConfig = require('./webpack.base.conf')
const utils = require('./utils')
const baseWebpackConfig = require('./webpack.base.conf')

const webpackConfig = merge(baseWebpackConfig, {
module: {
Expand Down
2 changes: 1 addition & 1 deletion demo/vue2.6/index.vue
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<script>
import Vue from 'vue'
import VueCompositionAPI from '@vue/composition-api'
import Vue from 'vue'
import JsonEditorVue from '../../src'
Vue.use(VueCompositionAPI)
Expand Down
2 changes: 1 addition & 1 deletion demo/vue3/index.vue
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<script setup lang="ts">
import { onMounted, reactive, ref, version } from 'vue'
import { parse, stringify } from 'lossless-json'
import { onMounted, reactive, ref, version } from 'vue'
import JsonEditorVue from '../../src'
const LosslessJSONParser = {
Expand Down
2 changes: 1 addition & 1 deletion demo/wujie/packages/sub/src/main.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { createApp } from 'vue'
import './style.css'
import App from './App.vue'
import './style.css'

createApp(App).mount('#app')
2 changes: 1 addition & 1 deletion demo/wujie/packages/sub/vite.config.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { defineConfig } from 'vite'
import vue from '@vitejs/plugin-vue'
import { defineConfig } from 'vite'

// https://vitejs.dev/config/
export default defineConfig({
Expand Down
2 changes: 1 addition & 1 deletion demo/wujie/src/main.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import { createApp } from 'vue'
import './style.css'
import WujieVue from 'wujie-vue3'
import App from './App.vue'
import './style.css'

const { setupApp, preloadApp } = WujieVue

Expand Down
2 changes: 1 addition & 1 deletion demo/wujie/vite.config.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { defineConfig } from 'vite'
import vue from '@vitejs/plugin-vue'
import { defineConfig } from 'vite'

// https://vitejs.dev/config/
export default defineConfig({
Expand Down
6 changes: 3 additions & 3 deletions scripts/dev.mts
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
// pnpm i only-allow esno prompts cross-spawn kolorist magicast del -D -w

import fs from 'node:fs'
import prompts from 'prompts'
import spawn from 'cross-spawn'
import { loadFile, writeFile } from 'magicast'
import type { ASTNode } from 'magicast'
import { cyan } from 'kolorist'
import { loadFile, writeFile } from 'magicast'
import { addVitePlugin } from 'magicast/helpers'
import prompts from 'prompts'
import type { ASTNode } from 'magicast'

type VueVersion = '3' | '2.7' | '2.6'

Expand Down
6 changes: 3 additions & 3 deletions scripts/release.mts
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
// pnpm i esno prompts semver cross-spawn kolorist del open -D -w

import fs from 'node:fs'
import prompts from 'prompts'
import * as semver from 'semver'
import spawn from 'cross-spawn'
import { cyan } from 'kolorist'
import { deleteAsync } from 'del'
import { cyan } from 'kolorist'
import open from 'open'
import prompts from 'prompts'
import * as semver from 'semver'

const docsPath = ['./README.md', './docs/README.zh-CN.md']

Expand Down
2 changes: 1 addition & 1 deletion test/index.test.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import { nextTick } from 'vue'
import { mount } from '@vue/test-utils'
import { expect, it } from 'vitest'
import { nextTick } from 'vue'
import JsonEditorVue from '../src/index'

it('text mode + set value', async () => {
Expand Down
2 changes: 1 addition & 1 deletion vitest.config.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
/// <reference types="vitest" />

import { defineConfig } from 'vite'
import Vue from '@vitejs/plugin-vue'
import { defineConfig } from 'vite'

export default defineConfig({
plugins: [
Expand Down

0 comments on commit 447dd8c

Please sign in to comment.