Skip to content

Commit

Permalink
feat: enable formatters in eslint-config
Browse files Browse the repository at this point in the history
  • Loading branch information
antfu committed Dec 4, 2023
1 parent 32b6eba commit b45e219
Show file tree
Hide file tree
Showing 8 changed files with 941 additions and 695 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/ci.yml
Expand Up @@ -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
Expand All @@ -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
Expand Down
3 changes: 1 addition & 2 deletions README.md
Expand Up @@ -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

Expand Down
2 changes: 1 addition & 1 deletion components/PageView.vue
Expand Up @@ -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>
Expand Down
1 change: 1 addition & 0 deletions eslint.config.js
Expand Up @@ -3,5 +3,6 @@ import antfu from '@antfu/eslint-config'
export default antfu(
{
unocss: true,
formatters: true,
},
)
2 changes: 1 addition & 1 deletion layouts/README.md
Expand Up @@ -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',
Expand Down
12 changes: 6 additions & 6 deletions netlify.toml
@@ -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
17 changes: 9 additions & 8 deletions package.json
Expand Up @@ -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"
}
}

0 comments on commit b45e219

Please sign in to comment.