Skip to content

Commit

Permalink
chore: move to eslint flat config (#16743)
Browse files Browse the repository at this point in the history
  • Loading branch information
antfu authored May 27, 2024
1 parent 8e4e932 commit 8f16765
Show file tree
Hide file tree
Showing 9 changed files with 341 additions and 308 deletions.
3 changes: 0 additions & 3 deletions .eslintignore

This file was deleted.

260 changes: 0 additions & 260 deletions .eslintrc.cjs

This file was deleted.

9 changes: 5 additions & 4 deletions docs/.vitepress/buildEnd.config.ts
Original file line number Diff line number Diff line change
@@ -1,12 +1,13 @@
import path from 'path'
import { writeFileSync } from 'fs'
import path from 'node:path'
import { writeFileSync } from 'node:fs'
import { Feed } from 'feed'
import { createContentLoader, type SiteConfig } from 'vitepress'
import type { SiteConfig } from 'vitepress'
import { createContentLoader } from 'vitepress'

const siteUrl = 'https://vitejs.dev'
const blogUrl = `${siteUrl}/blog`

export const buildEnd = async (config: SiteConfig) => {
export const buildEnd = async (config: SiteConfig): Promise<void> => {
const feed = new Feed({
title: 'Vite',
description: 'Next Generation Frontend Tooling',
Expand Down
3 changes: 2 additions & 1 deletion docs/.vitepress/config.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
import { defineConfig, DefaultTheme } from 'vitepress'
import type { DefaultTheme } from 'vitepress'
import { defineConfig } from 'vitepress'
import { transformerTwoslash } from '@shikijs/vitepress-twoslash'
import { buildEnd } from './buildEnd.config'

Expand Down
2 changes: 1 addition & 1 deletion docs/.vitepress/theme/composables/sponsor.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { ref, onMounted, onUnmounted } from 'vue'
import { onMounted, onUnmounted, ref } from 'vue'

interface Sponsors {
special: Sponsor[]
Expand Down
Loading

0 comments on commit 8f16765

Please sign in to comment.