Skip to content

Commit

Permalink
fix: eslint (#208)
Browse files Browse the repository at this point in the history
* fix: eslint

* fix: ignore generated eslint config
  • Loading branch information
hmbanan666 authored Aug 21, 2024
1 parent 5d7f081 commit 3799aa8
Show file tree
Hide file tree
Showing 5 changed files with 18 additions and 13 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -36,4 +36,4 @@ jobs:
# Prepend any command with "nx-cloud record --" to record its logs to Nx Cloud
# - run: yarn nx-cloud record -- echo Hello World
# Nx Affected runs only tasks affected by the changes in this PR/commit. Learn more: https://nx.dev/ci/features/affected
- run: yarn nx affected -t lint test build
- run: yarn nx affected -t build lint test
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -53,3 +53,4 @@ testem.log
.nuxt
.nitro
.cache
eslint.config.mjs
6 changes: 0 additions & 6 deletions apps/website/eslint.config.mjs

This file was deleted.

21 changes: 16 additions & 5 deletions apps/website/src/components/MenuProfile.vue
Original file line number Diff line number Diff line change
Expand Up @@ -12,15 +12,26 @@ url.searchParams.set('redirect_uri', publicEnv.signInRedirectUrl)
url.searchParams.set('response_type', 'code')
const { data: profile } = await useFetch('/api/auth/me')
const isSignedIn = profile?.id
const isSignedIn = !!profile?.id
</script>

<template>
<div class='wrapper'>
<button v-if="isSignedIn" class='profile-avatar' @click={handleMenuClick}>
<img src="~/assets/img/icons/twitch/112.png" alt="" >
<div class="wrapper">
<button
v-if="isSignedIn"
class="profile-avatar"
@click="{handleMenuClick}"
>
<img
src="~/assets/img/icons/twitch/112.png"
alt=""
>
</button>
<a v-else class='twitch' :href="url.href">Войти</a>
<a
v-else
class="twitch"
:href="url.href"
>Войти</a>
</div>
</template>

Expand Down
1 change: 0 additions & 1 deletion nx.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@
"production": [
"default",
"!{projectRoot}/.eslintrc.json",
"!{projectRoot}/eslint.config.js",
"!{projectRoot}/**/?(*.)+(spec|test).[jt]s?(x)?(.snap)",
"!{projectRoot}/tsconfig.spec.json"
],
Expand Down

0 comments on commit 3799aa8

Please sign in to comment.