Skip to content

Commit

Permalink
chore: lint project
Browse files Browse the repository at this point in the history
  • Loading branch information
Diizzayy committed Feb 29, 2024
1 parent bca6596 commit 936153a
Show file tree
Hide file tree
Showing 8 changed files with 18 additions and 14 deletions.
3 changes: 2 additions & 1 deletion .eslintrc
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
"extends": ["@nuxtjs/eslint-config-typescript"],
"rules": {
"no-redeclare": "off",
"@typescript-eslint/no-unused-vars": "off"
"@typescript-eslint/no-unused-vars": "off",
"vue/multi-word-component-names": "off"
}
}
16 changes: 8 additions & 8 deletions docs/app.config.ts
Original file line number Diff line number Diff line change
@@ -1,16 +1,16 @@
export default defineAppConfig({
docus: {
aside: {
level: 0,
level: 0
},
header: {
title: "Nuxt Apollo",
logo: true,
title: 'Nuxt Apollo',
logo: true
},
image: "/cover.jpg",
image: '/cover.jpg',
socials: {
github: "nuxt-modules/apollo",
twitter: "@nuxt_js",
},
github: 'nuxt-modules/apollo',
twitter: '@nuxt_js'
}
}
});
})
2 changes: 1 addition & 1 deletion docs/nuxt.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,5 +3,5 @@ export default defineNuxtConfig({

colorMode: {
preference: 'dark'
},
}
})
1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@
"dev": "nuxi dev playground",
"dev:build": "nuxi build playground",
"dev:prepare": "nuxt-module-build build --stub && nuxi prepare playground",
"lint": "eslint --ext .ts,.js,.vue --ignore-path .gitignore .",
"release": "standard-version --prerelease alpha && git push --follow-tags && pnpm publish --tag next"
},
"dependencies": {
Expand Down
4 changes: 2 additions & 2 deletions playground/components/StarlinkDemo.vue
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
<UCard class="p-4">
<div class="mb-4">
<label for="limit" class="mr-2">Limit:</label>
<input class="w-10" type="number" v-model.number="limit" min="1" />
<input v-model.number="limit" class="w-10" type="number" min="1">
</div>

<div>
Expand Down Expand Up @@ -55,7 +55,7 @@ const { load, onError, refetch, result: launchResult } = useLazyQuery(queryLaunc
fetchPolicy: 'no-cache'
})
watch(launchResult, v => (data.value = v))
// eslint-disable-next-line no-console
onError(e => console.error(e))
const getLaunches = () => !launchResult.value ? load() : refetch()
Expand Down
1 change: 1 addition & 0 deletions playground/components/TodosDemo.vue
Original file line number Diff line number Diff line change
Expand Up @@ -60,6 +60,7 @@ function todoAdded () {
})
onError((e) => {
// eslint-disable-next-line no-console
console.log(e)
})
}
Expand Down
4 changes: 2 additions & 2 deletions playground/pages/index.vue
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
const apis = ref([
{ label: 'Starlink', value: 'starlink' },
{ label: 'Todos', value: 'todos' },
{ label: 'Github', value: 'github' },
{ label: 'Github', value: 'github' }
])
const apiCookie = useCookie('apollo_api', { default: () => apis.value[0].value })
Expand All @@ -17,8 +17,8 @@ watch(api, value => (apiCookie.value = value))
<UCard class="p4">
<form class="flex gap-3 items-center">
<URadioGroup
:options="apis"
v-model="api"
:options="apis"
legend="Choose GraphQL API"
/>
</form>
Expand Down
1 change: 1 addition & 0 deletions playground/plugins/apollo.ts
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ export default defineNuxtPlugin((nuxtApp) => {

// Nuxt Apollo error hook
nuxtApp.hook('apollo:error', (error: ErrorResponse) => {
// eslint-disable-next-line no-console
console.log('Apollo Error Handler', error)
})
})

0 comments on commit 936153a

Please sign in to comment.