feat: enable formatters in eslint-config

This commit is contained in:
Anthony Fu committed 2023-12-04 18:05:08 +01:00
1 parent 32b6eba6cb
commit b45e219298
8 files changed
+941 -695

No files matched your search

+2 -2
View File
@@ -17,7 +17,7 @@ jobs:
- uses: pnpm/action-setup@v2
- uses: actions/setup-node@v3
with:
node-version: 16.x
node-version: lts/*
cache: pnpm
- name: Install
@@ -33,7 +33,7 @@ jobs:
- uses: pnpm/action-setup@v2
- uses: actions/setup-node@v3
with:
node-version: 16.x
node-version: lts/*
cache: pnpm
- name: Install
+1 -2
View File
@@ -35,8 +35,7 @@
- 🦾 TypeScript, of course.
- 📲 [PWA](https://github.com/vite-pwa/nuxt) with offline support and auto update behavior.
- 📲 [PWA](https://github.com/vite-pwa/nuxt) with offline support and auto-update behavior.
## Plugins
+1 -1
View File
@@ -6,7 +6,7 @@ const time = useTimeAgo(() => data.value?.startAt || 0)
<template>
<div text-gray:80>
<span font-500 text-gray>{{ data?.pageview }}</span>
<span text-gray font-500>{{ data?.pageview }}</span>
page views since
<span text-gray>{{ time }}</span>
</div>
+1
View File
@@ -3,5 +3,6 @@ import antfu from '@antfu/eslint-config'
export default antfu(
{
unocss: true,
formatters: true,
},
)
+1 -1
View File
@@ -4,7 +4,7 @@ Vue components in this dir are used as layouts.
By default, `default.vue` will be used unless an alternative is specified in the route meta.
```html
```vue
<script setup lang="ts">
definePageMeta({
layout: 'home',
+6 -6
View File
@@ -1,11 +1,11 @@
[build.environment]
NODE_VERSION = "16"
NODE_VERSION = "16"
[build]
publish = "dist"
command = "pnpm run build"
publish = "dist"
command = "pnpm run build"
[[redirects]]
from = "/*"
to = "/index.html"
status = 200
from = "/*"
to = "/index.html"
status = 200
+9 -8
View File
@@ -14,20 +14,21 @@
"typecheck": "vue-tsc --noEmit"
},
"devDependencies": {
"@antfu/eslint-config": "^2.1.1",
"@iconify-json/carbon": "^1.1.22",
"@iconify-json/twemoji": "^1.1.13",
"@antfu/eslint-config": "^2.3.1",
"@iconify-json/carbon": "^1.1.24",
"@iconify-json/twemoji": "^1.1.14",
"@nuxtjs/color-mode": "^3.3.2",
"@pinia/nuxt": "^0.5.1",
"@unocss/eslint-config": "^0.57.7",
"@unocss/nuxt": "^0.57.7",
"@vite-pwa/nuxt": "^0.3.2",
"@unocss/eslint-config": "^0.58.0",
"@unocss/nuxt": "^0.58.0",
"@vite-pwa/nuxt": "^0.3.3",
"@vueuse/nuxt": "^10.6.1",
"consola": "^3.2.3",
"eslint": "^8.54.0",
"eslint": "^8.55.0",
"eslint-plugin-format": "^0.0.1",
"nuxt": "^3.8.2",
"pinia": "^2.1.7",
"typescript": "^5.3.2",
"vue-tsc": "^1.8.22"
"vue-tsc": "^1.8.24"
}
}
+920 -675
View File
File diff suppressed because it is too large. Load diff