Skip to content

Commit

Permalink
chore: update eslint
Browse files Browse the repository at this point in the history
  • Loading branch information
Barbapapazes committed Oct 28, 2024
1 parent 192bfa6 commit 3c2787e
Show file tree
Hide file tree
Showing 6 changed files with 35 additions and 36 deletions.
2 changes: 1 addition & 1 deletion app/components/Profile/ProfileSectionInformation.vue
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
<script lang="ts" setup>
import { type FetchError } from 'ofetch'
import type { FetchError } from 'ofetch'
import type { z } from 'zod'
import type { FormSubmitEvent } from '#ui/types'
Expand Down
3 changes: 0 additions & 3 deletions auth.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -10,9 +10,6 @@ declare module '#auth-utils' {
verifiedAt: string | null
emailToVerify?: string | null
}

interface UserSession {
}
}

export {}
4 changes: 1 addition & 3 deletions eslint.config.mjs
Original file line number Diff line number Diff line change
@@ -1,6 +1,4 @@
// @ts-check
import withNuxt from './.nuxt/eslint.config.mjs'

export default withNuxt(
// Your custom configs here
)
export default withNuxt()
50 changes: 25 additions & 25 deletions nuxt.config.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
const isProd = process.env.NODE_ENV === 'production'

export default defineNuxtConfig({
compatibilityDate: '2024-04-03',
extends: ['@nuxt/ui-pro'],
modules: [
'@nuxt/eslint',
Expand All @@ -10,6 +9,20 @@ export default defineNuxtConfig({
'@nuxt/ui',
'nuxt-security',
],
devtools: { enabled: true },
colorMode: {
preference: 'system',
},
runtimeConfig: {
app: {
name: '',
url: '',
},
mail: {
key: '',
from: '',
},
},
routeRules: {
'/api/me': {
security: {
Expand All @@ -29,21 +42,23 @@ export default defineNuxtConfig({
},
},
},
runtimeConfig: {
app: {
name: '',
url: '',
},
mail: {
key: '',
from: '',
},
future: {
compatibilityVersion: 4,
},
compatibilityDate: '2024-04-03',
hub: {
database: true,
blob: true,
kv: true,
},
csurf: {
methodsToProtect: ['POST', 'PUT', 'PATCH', 'DELETE'],
},
eslint: {
config: {
stylistic: true,
},
},
security: {
csrf: true,
rateLimiter: {
Expand All @@ -62,19 +77,4 @@ export default defineNuxtConfig({
crossOriginEmbedderPolicy: isProd ? 'credentialless' : false,
},
},
csurf: {
methodsToProtect: ['POST', 'PUT', 'PATCH', 'DELETE'],
},
colorMode: {
preference: 'system',
},
eslint: {
config: {
stylistic: true,
},
},
future: {
compatibilityVersion: 4,
},
devtools: { enabled: true },
})
1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,7 @@
"@nuxt/eslint": "^0.6.0",
"drizzle-kit": "^0.26.2",
"eslint": "^9.13.0",
"typescript": "^5.6.3",
"wrangler": "^3.83.0"
},
"packageManager": "[email protected]"
Expand Down
11 changes: 7 additions & 4 deletions pnpm-lock.yaml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit 3c2787e

Please sign in to comment.