Skip to content
This repository has been archived by the owner on Jan 8, 2024. It is now read-only.

Commit

Permalink
fix: update eslint config
Browse files Browse the repository at this point in the history
  • Loading branch information
elonehoo committed Nov 14, 2023
1 parent 866093f commit a0fece8
Show file tree
Hide file tree
Showing 15 changed files with 1,598 additions and 1,465 deletions.
3 changes: 1 addition & 2 deletions .vscode/settings.json
Expand Up @@ -25,7 +25,6 @@
"window.dialogStyle": "custom",
"window.nativeTabs": true, // this is great, macOS only
"window.titleBarStyle": "custom",
"workbench.activityBar.visible": true,
"workbench.colorTheme": "Vitesse Dark",
"workbench.editor.closeOnFileDelete": true,
"workbench.editor.highlightModifiedTabs": true,
Expand Down Expand Up @@ -219,5 +218,5 @@
"next.config.*": "*.env, .babelrc*, .codecov, .cssnanorc*, .env.*, .htmlnanorc*, .mocha*, .postcssrc*, .terserrc*, api-extractor.json, ava.config.*, babel.config.*, cssnano.config.*, cypress.json, env.d.ts, htmlnanorc.*, jasmine.*, jest.config.*, jsconfig.*, karma*, next-env.d.ts, playwright.config.*, postcss.config.*, puppeteer.config.*, svgo.config.*, tailwind.config.*, tsconfig.*, tsdoc.*, unocss.config.*, vitest.config.*, webpack.config.*, windi.config.*",
"svelte.config.*": "*.env, .babelrc*, .codecov, .cssnanorc*, .env.*, .htmlnanorc*, .mocha*, .postcssrc*, .terserrc*, api-extractor.json, ava.config.*, babel.config.*, cssnano.config.*, cypress.json, env.d.ts, htmlnanorc.*, jasmine.*, jest.config.*, jsconfig.*, karma*, mdsvex.config.js, playwright.config.*, postcss.config.*, puppeteer.config.*, svgo.config.*, tailwind.config.*, tsconfig.*, tsdoc.*, unocss.config.*, vitest.config.*, webpack.config.*, windi.config.*",
"remix.config.*": "*.env, .babelrc*, .codecov, .cssnanorc*, .env.*, .htmlnanorc*, .mocha*, .postcssrc*, .terserrc*, api-extractor.json, ava.config.*, babel.config.*, cssnano.config.*, cypress.json, env.d.ts, htmlnanorc.*, jasmine.*, jest.config.*, jsconfig.*, karma*, playwright.config.*, postcss.config.*, puppeteer.config.*, remix.*, svgo.config.*, tailwind.config.*, tsconfig.*, tsdoc.*, unocss.config.*, vitest.config.*, webpack.config.*, windi.config.*"
},
}
}
9 changes: 7 additions & 2 deletions auto-imports.d.ts
@@ -1,11 +1,12 @@
/* eslint-disable */
/* prettier-ignore */
// @ts-nocheck
// noinspection JSUnusedGlobalSymbols
// Generated by unplugin-auto-import
export {}
declare global {
const $$: typeof import('vue/macros')['$$']
const $: typeof import('vue/macros')['$']
const $$: typeof import('vue/macros')['$$']
const $computed: typeof import('vue/macros')['$computed']
const $customRef: typeof import('vue/macros')['$customRef']
const $ref: typeof import('vue/macros')['$ref']
Expand Down Expand Up @@ -43,6 +44,7 @@ declare global {
const h: typeof import('vue')['h']
const ignorableWatch: typeof import('@vueuse/core')['ignorableWatch']
const inject: typeof import('vue')['inject']
const injectLocal: typeof import('@vueuse/core')['injectLocal']
const isDefined: typeof import('@vueuse/core')['isDefined']
const isProxy: typeof import('vue')['isProxy']
const isReactive: typeof import('vue')['isReactive']
Expand Down Expand Up @@ -72,6 +74,7 @@ declare global {
const onUpdated: typeof import('vue')['onUpdated']
const pausableWatch: typeof import('@vueuse/core')['pausableWatch']
const provide: typeof import('vue')['provide']
const provideLocal: typeof import('@vueuse/core')['provideLocal']
const reactify: typeof import('@vueuse/core')['reactify']
const reactifyObject: typeof import('@vueuse/core')['reactifyObject']
const reactive: typeof import('vue')['reactive']
Expand Down Expand Up @@ -100,6 +103,7 @@ declare global {
const toReactive: typeof import('@vueuse/core')['toReactive']
const toRef: typeof import('vue')['toRef']
const toRefs: typeof import('vue')['toRefs']
const toValue: typeof import('vue')['toValue']
const triggerRef: typeof import('vue')['triggerRef']
const tryOnBeforeMount: typeof import('@vueuse/core')['tryOnBeforeMount']
const tryOnBeforeUnmount: typeof import('@vueuse/core')['tryOnBeforeUnmount']
Expand Down Expand Up @@ -134,6 +138,7 @@ declare global {
const useBrowserLocation: typeof import('@vueuse/core')['useBrowserLocation']
const useCached: typeof import('@vueuse/core')['useCached']
const useClipboard: typeof import('@vueuse/core')['useClipboard']
const useClipboardItems: typeof import('@vueuse/core')['useClipboardItems']
const useCloned: typeof import('@vueuse/core')['useCloned']
const useColorMode: typeof import('@vueuse/core')['useColorMode']
const useConfirmDialog: typeof import('@vueuse/core')['useConfirmDialog']
Expand Down Expand Up @@ -289,5 +294,5 @@ declare global {
// for type re-export
declare global {
// @ts-ignore
export type { Component, ComponentPublicInstance, ComputedRef, InjectionKey, PropType, Ref, VNode } from 'vue'
export type { Component, ComponentPublicInstance, ComputedRef, ExtractDefaultPropTypes, ExtractPropTypes, ExtractPublicPropTypes, InjectionKey, PropType, Ref, VNode, WritableComputedRef } from 'vue'
}
4 changes: 1 addition & 3 deletions components.d.ts
Expand Up @@ -3,11 +3,9 @@
// @ts-nocheck
// Generated by unplugin-vue-components
// Read more: https://github.com/vuejs/core/pull/3399
import '@vue/runtime-core'

export {}

declare module '@vue/runtime-core' {
declare module 'vue' {
export interface GlobalComponents {
ArrowUpRight: typeof import('./src/components/icon/ArrowUpRight.vue')['default']
Footer: typeof import('./src/components/Footer.vue')['default']
Expand Down
4 changes: 4 additions & 0 deletions eslint.config.js
@@ -0,0 +1,4 @@
// eslint.config.js
const antfu = require('@antfu/eslint-config').default

module.exports = antfu()
29 changes: 15 additions & 14 deletions package.json
Expand Up @@ -5,34 +5,35 @@
"build": "vite build",
"dev": "vite --port 3333 --open",
"lint": "eslint .",
"lint:fix": "eslint . --fix",
"typecheck": "vue-tsc --noEmit",
"preview": "vite preview",
"test": "vitest"
},
"dependencies": {
"@vueuse/core": "10.4.1",
"axios": "1.5.1",
"vue": "3.3.4",
"@vueuse/core": "10.6.1",
"axios": "1.6.1",
"vue": "3.3.8",
"vue-router": "4.2.5"
},
"devDependencies": {
"@antfu/eslint-config": "0.43.1",
"@antfu/eslint-config": "1.1.1",
"@iconify-json/carbon": "1.1.21",
"@types/node": "18.18.1",
"@unocss/reset": "0.56.4",
"@vitejs/plugin-vue": "4.3.4",
"@vue/test-utils": "2.4.1",
"eslint": "8.50.0",
"@types/node": "20.9.0",
"@unocss/reset": "0.57.4",
"@vitejs/plugin-vue": "4.4.1",
"@vue/test-utils": "2.4.2",
"eslint": "8.53.0",
"jsdom": "22.1.0",
"pnpm": "8.8.0",
"pnpm": "8.10.5",
"typescript": "5.2.2",
"unocss": "0.56.4",
"unplugin-auto-import": "0.16.6",
"unocss": "0.57.4",
"unplugin-auto-import": "0.16.7",
"unplugin-vue-components": "0.25.2",
"vite": "4.4.9",
"vite": "4.5.0",
"vite-plugin-pages": "0.31.0",
"vitest": "0.34.6",
"vue-tsc": "1.8.15"
"vue-tsc": "1.8.22"
},
"eslintConfig": {
"extends": "@antfu"
Expand Down

0 comments on commit a0fece8

Please sign in to comment.