Update eslint configuration comments

This commit is contained in:
silverpill 2022-06-05 21:24:21 +00:00
parent 6a3c7bd15f
commit cef684c141
7 changed files with 12 additions and 16 deletions

View file

@ -15,16 +15,17 @@
</template> </template>
<script setup lang="ts"> <script setup lang="ts">
/* eslint-disable no-undef */
/* eslint-disable @typescript-eslint/no-unused-vars */
import { watch } from "vue" import { watch } from "vue"
import { PAGE_SIZE } from "@/api/common" import { PAGE_SIZE } from "@/api/common"
import { Post as PostObject } from "@/api/posts" import { Post as PostObject } from "@/api/posts"
import PostOrRepost from "@/components/PostOrRepost.vue" import PostOrRepost from "@/components/PostOrRepost.vue"
/* eslint-disable-next-line no-undef */
const props = defineProps<{ const props = defineProps<{
posts: PostObject[], posts: PostObject[],
}>() }>()
/* eslint-disable-next-line no-undef */
const emit = defineEmits<{(event: "load-next-page", maxId: string): void}>() const emit = defineEmits<{(event: "load-next-page", maxId: string): void}>()
let initialPostCount: number | null = null let initialPostCount: number | null = null

View file

@ -16,15 +16,14 @@
</template> </template>
<script setup lang="ts"> <script setup lang="ts">
/* eslint-disable no-undef */
/* eslint-disable no-unused-vars */
import type { Post as PostObject } from "@/api/posts" import type { Post as PostObject } from "@/api/posts"
import Post from "@/components/Post.vue" import Post from "@/components/Post.vue"
const props = defineProps<{ /* eslint-disable-next-line no-undef */
defineProps<{
post: PostObject, post: PostObject,
}>() }>()
/* eslint-disable-next-line no-undef */
const emit = defineEmits<{(event: "post-deleted", postId: string): void}>() const emit = defineEmits<{(event: "post-deleted", postId: string): void}>()
function onPostDeleted(postId: string) { function onPostDeleted(postId: string) {

View file

@ -9,15 +9,14 @@
</template> </template>
<script setup lang="ts"> <script setup lang="ts">
/* eslint-disable no-undef */
/* eslint-disable no-unused-vars */
import { Profile } from "@/api/users" import { Profile } from "@/api/users"
import Avatar from "@/components/Avatar.vue" import Avatar from "@/components/Avatar.vue"
import { useInstanceInfo } from "@/store/instance" import { useInstanceInfo } from "@/store/instance"
const { getActorAddress } = useInstanceInfo() const { getActorAddress } = useInstanceInfo()
const props = defineProps<{ /* eslint-disable-next-line no-undef */
defineProps<{
profile: Profile, profile: Profile,
}>() }>()
</script> </script>

View file

@ -6,7 +6,7 @@
</template> </template>
<script setup lang="ts"> <script setup lang="ts">
/* eslint-disable no-undef */ /* eslint-disable-next-line no-undef */
defineProps<{ defineProps<{
visibility: string, visibility: string,
}>() }>()

View file

@ -81,8 +81,8 @@
</template> </template>
<script setup lang="ts"> <script setup lang="ts">
/* eslint-disable no-unused-vars */ import { onMounted } from "vue"
import { ref, onMounted } from "vue"
import { PAGE_SIZE } from "@/api/common" import { PAGE_SIZE } from "@/api/common"
import { updateNotificationMarker } from "@/api/markers" import { updateNotificationMarker } from "@/api/markers"
import { getNotifications, Notification } from "@/api/notifications" import { getNotifications, Notification } from "@/api/notifications"

View file

@ -53,9 +53,7 @@
</template> </template>
<script setup lang="ts"> <script setup lang="ts">
/* eslint-disable no-unused-vars */ import { onMounted } from "vue"
/* eslint-disable no-undef */
import { ref, onMounted } from "vue"
import { $, $ref } from "vue/macros" import { $, $ref } from "vue/macros"
import { useRoute } from "vue-router" import { useRoute } from "vue-router"

View file

@ -11,7 +11,6 @@
</template> </template>
<script setup lang="ts"> <script setup lang="ts">
/* eslint-disable @typescript-eslint/no-unused-vars */
import { ref, onMounted } from "vue" import { ref, onMounted } from "vue"
import { useRoute } from "vue-router" import { useRoute } from "vue-router"