Skip to content

Commit

Permalink
chore: update deps & lint
Browse files Browse the repository at this point in the history
  • Loading branch information
antfu committed Sep 17, 2024
1 parent 3fdd717 commit b5da8e7
Show file tree
Hide file tree
Showing 24 changed files with 2,527 additions and 2,608 deletions.
2 changes: 1 addition & 1 deletion app/app.vue
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<script setup lang="ts">
import { useHead } from '@unhead/vue'
import { useRuntimeConfig } from '#app/nuxt'
import { useHead } from '@unhead/vue'
import { errorInfo, init, isLoading } from '~/composables/payload'
import 'floating-vue/dist/style.css'
Expand Down
6 changes: 3 additions & 3 deletions app/components/ConfigItem.vue
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
<script setup lang="ts">
import type { FiltersConfigsPage, FlatConfigItem } from '~~/shared/types'
import { useRouter } from '#app/composables/router'
import { getRuleLevel, getRuleOptions } from '~~/shared/rules'
import { computed, defineModel, ref, watchEffect } from 'vue'
import { filtersRules, isGridView } from '~/composables/state'
import { stringifyUnquoted } from '~/composables/strings'
import { useRouter } from '#app/composables/router'
import type { FiltersConfigsPage, FlatConfigItem } from '~~/shared/types'
import { getRuleLevel, getRuleOptions } from '~~/shared/rules'
const props = defineProps<{
config: FlatConfigItem
Expand Down
4 changes: 2 additions & 2 deletions app/components/FileGroupItem.vue
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<script setup lang="ts">
import { computed, defineModel, ref, watchEffect } from 'vue'
import { useRouter } from '#app/composables/router'
import type { FilesGroup } from '~~/shared/types'
import { useRouter } from '#app/composables/router'
import { computed, defineModel, ref, watchEffect } from 'vue'
const props = defineProps<{
index: number
Expand Down
2 changes: 1 addition & 1 deletion app/components/FileItem.vue
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
<script setup lang="ts">
import { useRouter } from '#app/composables/router'
import { computed } from 'vue'
import { filepathIconsMap } from '~/composables/icons'
import { filtersConfigs } from '~/composables/state'
import { useRouter } from '#app/composables/router'
const props = defineProps<{
filepath: string
Expand Down
8 changes: 4 additions & 4 deletions app/components/GlobItem.vue
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
<script setup lang="ts">
import { computed, defineComponent } from 'vue'
import { Dropdown as VDropdown } from 'floating-vue'
import { useHighlightedGlob } from '../composables/shiki'
import { filtersConfigs } from '~/composables/state'
import { useRouter } from '#app/composables/router'
import { Dropdown as VDropdown } from 'floating-vue'
import { computed, defineComponent } from 'vue'
import { payload } from '~/composables/payload'
import { filtersConfigs } from '~/composables/state'
import { useHighlightedGlob } from '../composables/shiki'
const props = withDefaults(
defineProps<{
Expand Down
8 changes: 4 additions & 4 deletions app/components/NavBar.vue
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
<script setup lang="ts">
import { computed } from 'vue'
import { useTimeAgo } from '@vueuse/core'
import { filtersRules as filters } from '~/composables/state'
import { useRouter } from '#app/composables/router'
import { isFetching, payload } from '~/composables/payload'
import { useTimeAgo } from '@vueuse/core'
import { computed } from 'vue'
import { toggleDark } from '~/composables/dark'
import { isFetching, payload } from '~/composables/payload'
import { filtersRules as filters } from '~/composables/state'
const lastUpdate = useTimeAgo(() => payload.value.meta.lastUpdate)
Expand Down
4 changes: 2 additions & 2 deletions app/components/RuleItem.vue
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
<script setup lang="ts">
import type { RuleConfigStates, RuleInfo, RuleLevel } from '~~/shared/types'
import { useClipboard } from '@vueuse/core'
import { vTooltip } from 'floating-vue'
import { getRuleLevel, getRuleOptions } from '~~/shared/rules'
import type { RuleConfigStates, RuleInfo, RuleLevel } from '~~/shared/types'
import { vTooltip } from 'floating-vue'
const props = defineProps<{
rule: RuleInfo
Expand Down
2 changes: 1 addition & 1 deletion app/components/RuleLevelIcon.vue
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<script setup lang="ts">
import { computed } from 'vue'
import type { RuleLevel } from '~~/shared/types'
import { computed } from 'vue'
import { nth } from '~/composables/strings'
const props = defineProps<{
Expand Down
6 changes: 3 additions & 3 deletions app/components/RuleList.vue
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
<script setup lang="ts">
import { Fragment, computed, defineComponent, h } from 'vue'
import type { RuleInfo } from '~~/shared/types'
import type { Linter } from 'eslint'
import { isGridView } from '../composables/state'
import { computed, defineComponent, Fragment, h } from 'vue'
import { getRuleFromName, payload } from '~/composables/payload'
import type { RuleInfo } from '~~/shared/types'
import { isGridView } from '../composables/state'
const props = defineProps<{
rules: Partial<Linter.RulesRecord> | RuleInfo[]
Expand Down
8 changes: 4 additions & 4 deletions app/components/RuleStateItem.vue
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
<script setup lang="ts">
import type { RuleConfigState } from '~~/shared/types'
import { useRouter } from '#app/composables/router'
import { computed } from 'vue'
import { nth, stringifyUnquoted } from '~/composables/strings'
import { filtersConfigs } from '~/composables/state'
import { payload } from '~/composables/payload'
import { useRouter } from '#app/composables/router'
import type { RuleConfigState } from '~~/shared/types'
import { filtersConfigs } from '~/composables/state'
import { nth, stringifyUnquoted } from '~/composables/strings'
const props = defineProps<{
state: RuleConfigState
Expand Down
4 changes: 2 additions & 2 deletions app/composables/payload.ts
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
/* eslint-disable no-console */
import { $fetch } from 'ofetch'
import type { ErrorInfo, FilesGroup, FlatConfigItem, Payload, ResolvedPayload, RuleConfigStates, RuleInfo } from '~~/shared/types'
import { isGeneralConfig, isIgnoreOnlyConfig } from '~~/shared/configs'
import { getRuleLevel, getRuleOptions } from '~~/shared/rules'
import type { ErrorInfo, FilesGroup, FlatConfigItem, Payload, ResolvedPayload, RuleConfigStates, RuleInfo } from '~~/shared/types'
import { $fetch } from 'ofetch'

const LOG_NAME = '[ESLint Config Inspector]'

Expand Down
2 changes: 1 addition & 1 deletion app/composables/state.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import type { FiltersConfigsPage } from '~~/shared/types'
import { breakpointsTailwind } from '@vueuse/core'
import { computed, reactive, ref } from 'vue'
import type { FiltersConfigsPage } from '~~/shared/types'

export const filtersConfigs = reactive<FiltersConfigsPage>({
rule: '',
Expand Down
10 changes: 5 additions & 5 deletions app/pages/configs.vue
Original file line number Diff line number Diff line change
@@ -1,16 +1,16 @@
<script setup lang="ts">
import { computed, defineComponent, h, nextTick, onMounted, ref, shallowRef, watch, watchEffect } from 'vue'
import { debouncedWatch } from '@vueuse/core'
import type { FlatConfigItem, MatchedFile } from '~~/shared/types'
import type { Linter } from 'eslint'
import type { FuseResultMatch } from 'fuse.js'
import Fuse from 'fuse.js'
import type { PropType, VNode } from 'vue'
import { useRoute } from '#app/composables/router'
import { configsOpenState, filtersConfigs as filters, stateStorage } from '~/composables/state'
import { debouncedWatch } from '@vueuse/core'
import { isIgnoreOnlyConfig, matchFile } from '~~/shared/configs'
import { getRuleLevel } from '~~/shared/rules'
import Fuse from 'fuse.js'
import { computed, defineComponent, h, nextTick, onMounted, ref, shallowRef, watch, watchEffect } from 'vue'
import { payload } from '~/composables/payload'
import type { FlatConfigItem, MatchedFile } from '~~/shared/types'
import { configsOpenState, filtersConfigs as filters, stateStorage } from '~/composables/state'
const input = ref(filters.filepath)
Expand Down
2 changes: 1 addition & 1 deletion app/pages/files.vue
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<script setup lang="ts">
import { fileGroupsOpenState, stateStorage } from '../composables/state'
import { payload } from '~/composables/payload'
import { fileGroupsOpenState, stateStorage } from '../composables/state'
function expandAll() {
fileGroupsOpenState.value = fileGroupsOpenState.value.map(() => true)
Expand Down
4 changes: 2 additions & 2 deletions app/pages/rules.vue
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
<script setup lang="ts">
import { debouncedWatch } from '@vueuse/core'
import { computed, ref } from 'vue'
import Fuse from 'fuse.js'
import { bpSm, filtersRules as filters, stateStorage } from '~/composables/state'
import { computed, ref } from 'vue'
import { payload } from '~/composables/payload'
import { bpSm, filtersRules as filters, stateStorage } from '~/composables/state'
const rules = computed(() => Object.values(payload.value.rules))
const pluginNames = computed(() => Array.from(new Set(rules.value.map(i => i.plugin))).filter(Boolean))
Expand Down
56 changes: 28 additions & 28 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"name": "@eslint/config-inspector",
"type": "module",
"version": "0.5.4",
"packageManager": "pnpm@9.7.0",
"packageManager": "pnpm@9.10.0",
"description": "A visual tool for inspecting and understanding your ESLint flat configs",
"license": "Apache-2.0",
"funding": "https://opencollective.com/eslint",
Expand Down Expand Up @@ -33,52 +33,52 @@
"eslint": "^8.50.0 || ^9.0.0"
},
"dependencies": {
"@eslint/config-array": "^0.17.1",
"@voxpelli/config-array-find-files": "^0.1.2",
"@eslint/config-array": "^0.18.0",
"@voxpelli/config-array-find-files": "^1.2.1",
"bundle-require": "^5.0.0",
"cac": "^6.7.14",
"chokidar": "^3.6.0",
"esbuild": "^0.21.5",
"chokidar": "^4.0.0",
"esbuild": "^0.23.1",
"fast-glob": "^3.3.2",
"find-up": "^7.0.0",
"get-port-please": "^3.1.2",
"h3": "^1.12.0",
"minimatch": "^9.0.5",
"minimatch": "^10.0.1",
"mlly": "^1.7.1",
"mrmime": "^2.0.0",
"open": "^10.1.0",
"picocolors": "^1.0.1",
"picocolors": "^1.1.0",
"ws": "^8.18.0"
},
"devDependencies": {
"@antfu/eslint-config": "^2.24.1",
"@iconify-json/carbon": "^1.1.37",
"@iconify-json/file-icons": "^1.1.10",
"@iconify-json/logos": "^1.1.44",
"@iconify-json/ph": "^1.1.14",
"@iconify-json/simple-icons": "^1.1.112",
"@iconify-json/svg-spinners": "^1.1.3",
"@iconify-json/twemoji": "^1.1.16",
"@iconify-json/vscode-icons": "^1.1.37",
"@nuxt/eslint": "^0.5.0",
"@antfu/eslint-config": "^3.6.2",
"@iconify-json/carbon": "^1.2.1",
"@iconify-json/file-icons": "^1.2.0",
"@iconify-json/logos": "^1.2.0",
"@iconify-json/ph": "^1.2.0",
"@iconify-json/simple-icons": "^1.2.3",
"@iconify-json/svg-spinners": "^1.2.0",
"@iconify-json/twemoji": "^1.2.0",
"@iconify-json/vscode-icons": "^1.2.2",
"@nuxt/eslint": "^0.5.7",
"@types/connect": "^3.4.38",
"@types/ws": "^8.5.12",
"@typescript-eslint/utils": "^8.0.1",
"@unocss/eslint-config": "^0.61.9",
"@unocss/nuxt": "^0.61.9",
"@vueuse/nuxt": "^10.11.0",
"eslint": "^9.8.0",
"@typescript-eslint/utils": "^8.6.0",
"@unocss/eslint-config": "^0.62.4",
"@unocss/nuxt": "^0.62.4",
"@vueuse/nuxt": "^11.1.0",
"eslint": "^9.10.0",
"floating-vue": "^5.2.2",
"fuse.js": "^7.0.0",
"lint-staged": "^15.2.8",
"nuxt": "^3.12.4",
"nuxt-eslint-auto-explicit-import": "^0.0.2",
"shiki": "^1.12.1",
"lint-staged": "^15.2.10",
"nuxt": "^3.13.2",
"nuxt-eslint-auto-explicit-import": "^0.1.0",
"shiki": "^1.17.7",
"simple-git-hooks": "^2.11.1",
"textmate-grammar-glob": "^0.0.1",
"typescript": "^5.5.4",
"typescript": "^5.6.2",
"unbuild": "^2.0.0",
"vue-tsc": "^2.0.29"
"vue-tsc": "^2.1.6"
},
"pnpm": {
"overrides": {
Expand Down
Loading

0 comments on commit b5da8e7

Please sign in to comment.