diff --git a/.eslintrc.js b/.eslintrc.js index f9bc8cc2..8dfdd6b3 100644 --- a/.eslintrc.js +++ b/.eslintrc.js @@ -21,6 +21,7 @@ module.exports = { }, ], rules: { + 'no-console': 'off', 'vue/multi-word-component-names': 'off', 'vue/require-default-prop': 'off', }, diff --git a/nuxt.config.ts b/nuxt.config.ts index 37ba642f..11c26e0e 100644 --- a/nuxt.config.ts +++ b/nuxt.config.ts @@ -25,6 +25,8 @@ export default defineNuxtConfig({ sourcemap: false, + typescript: { strict: true }, + srcDir: 'src', build: { @@ -45,7 +47,7 @@ export default defineNuxtConfig({ routes: ['/', '/uses', '/og/og.jpg'], }, hooks: { - 'prerender:generate'(route) { + 'prerender:generate' (route) { if (route.error) { process.exit(1) } @@ -95,13 +97,13 @@ export default defineNuxtConfig({ '/fonts/barlow-7cHpv4kjgoGqM7E_DMs5.woff2', ].map( href => - ({ - rel: 'preload', - as: 'font', - type: 'font/woff2', - crossorigin: '', - href, - } as const) + ({ + rel: 'preload', + as: 'font', + type: 'font/woff2', + crossorigin: '', + href, + } as const) ), { rel: 'mask-icon', color: '#fff', href: '/favicon.svg' }, { rel: 'icon', type: 'image/svg', href: '/favicon.svg' }, diff --git a/src/components/layout/TheSiteHeader.vue b/src/components/layout/TheSiteHeader.vue index f5066d54..f83b6a44 100644 --- a/src/components/layout/TheSiteHeader.vue +++ b/src/components/layout/TheSiteHeader.vue @@ -3,7 +3,7 @@ const config = useRuntimeConfig() const redirect = process.dev ? `&redirect_uri=http://localhost:3000/auth/github` : '' -const loginURL = `https://github.com/login/oauth/authorize?client_id=${config.public.githubClientId}${redirect}` +const loginURL = `https://github.com/login/oauth/authorize?client_id=${config.public.githubClientId}${redirect}&scope=read:org`