Skip to content

Commit 26ece1c

Browse files
committed
chore: lint using @nuxtjs/eslint-config-typescript
1 parent 8ed42db commit 26ece1c

File tree

9 files changed

+582
-111
lines changed

9 files changed

+582
-111
lines changed

.eslintrc

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,8 @@
11
{
22
"root": true,
3-
"extends": ["@nuxt/eslint-config"]
3+
"extends": ["@nuxtjs/eslint-config-typescript"],
4+
"rules": {
5+
"curly": "off",
6+
"no-console": "off"
7+
}
48
}

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,10 +37,10 @@
3737
"appwrite": "^11.0.0"
3838
},
3939
"devDependencies": {
40-
"@nuxt/eslint-config": "^0.1.1",
4140
"@nuxt/module-builder": "^0.4.0",
4241
"@nuxt/schema": "^3.5.2",
4342
"@nuxt/test-utils": "^3.5.2",
43+
"@nuxtjs/eslint-config-typescript": "^12.0.0",
4444
"changelogen": "^0.5.3",
4545
"eslint": "^8.41.0 ",
4646
"nuxt": "^3.5.2",

playground/app.vue

Lines changed: 7 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
<script setup lang="ts">
2-
import { ref, onMounted } from 'vue';
3-
import { /* useAsyncData, */useAppwrite } from '#imports';
2+
import { ref, onMounted } from 'vue'
3+
import { /* useAsyncData, */ useAppwrite } from '#imports'
44
55
const { account } = useAppwrite()
66
// const { data } = await useAsyncData(async () => {
@@ -33,19 +33,13 @@ const logout = async () => {
3333
<template>
3434
<div>
3535
<form v-if="!user" @submit.prevent="login">
36-
<input
37-
v-model="email"
38-
placeholder="Email"
39-
type="email"
40-
>
41-
<input
42-
v-model="password"
43-
placeholder="Password"
44-
type="password"
45-
>
36+
<input v-model="email" placeholder="Email" type="email">
37+
<input v-model="password" placeholder="Password" type="password">
4638
<button>Login</button>
4739
</form>
48-
<button v-else @click="logout">Logout</button>
40+
<button v-else @click="logout">
41+
Logout
42+
</button>
4943

5044
<pre>{{ JSON.stringify(user, null, 2) }}</pre>
5145
</div>

playground/nuxt.config.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
export default defineNuxtConfig({
22
modules: ['../src/module'],
33
appwrite: {
4-
project: 'nuxt-playground',
4+
project: 'nuxt-playground'
55
},
66
typescript: {
77
shim: false

0 commit comments

Comments
 (0)