Skip to content

Commit

Permalink
Merge pull request #159 from xicri/chore-fix-linters
Browse files Browse the repository at this point in the history
Fix configs for lint tools
  • Loading branch information
xicri authored Aug 2, 2024
2 parents d19bb98 + f062c60 commit 8b957a3
Show file tree
Hide file tree
Showing 19 changed files with 7,268 additions and 7,411 deletions.
2 changes: 1 addition & 1 deletion components/translation.vue
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
</template>

<script lang="ts" setup>
import { escapeHtmlString } from "~/libs/utils";
import { escapeHtmlString } from "~/libs/utils.ts";
import type { Locale } from "~/types";
const props = defineProps({
Expand Down
6 changes: 3 additions & 3 deletions components/word-list-results.vue
Original file line number Diff line number Diff line change
Expand Up @@ -112,9 +112,9 @@
</i18n>

<script lang="ts" setup>
import { useDictionaryStore } from "~/store/index";
import { sleep } from "~/libs/utils";
import type { Locale, Word } from "~/types";
import { sleep } from "~/libs/utils.ts";
import { useDictionaryStore } from "~/store/index.ts";
import type { Locale, Word } from "~/types.ts";
defineProps({
words: {
Expand Down
4 changes: 2 additions & 2 deletions components/word-list-search.vue
Original file line number Diff line number Diff line change
Expand Up @@ -70,11 +70,11 @@
</i18n>

<script lang="ts" setup>
import allTags from "~/dataset/tags.json";
import { klona } from "klona/json";
import { debounce } from "lodash-es";
import { storeToRefs } from "pinia";
import { useDictionaryStore } from "~/store/index";
import allTags from "~/dataset/tags.json";
import { useDictionaryStore } from "~/store/index.ts";
import type ElasticSearchbox from "~/components/elastic-searchbox.vue";
import type { Locale, TagID } from "~/types";
Expand Down
4 changes: 2 additions & 2 deletions components/word-list.vue
Original file line number Diff line number Diff line change
Expand Up @@ -27,8 +27,8 @@

<script lang="ts" setup>
import { storeToRefs } from "pinia";
import { useDictionaryStore } from "~/store/index";
import type { Locale } from "~/types";
import { useDictionaryStore } from "~/store/index.ts";
import type { Locale } from "~/types.ts";
defineEmits([ "search" ]);
Expand Down
2 changes: 1 addition & 1 deletion middleware/redirects.global.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import wordRedirects from "../dataset/redirect/words.json";
import tagRedirects from "../dataset/redirect/tags.json";
import wordRedirects from "../dataset/redirect/words.json";
import type { TagID } from "../types";

type ObsoleteWordID = keyof typeof wordRedirects;
Expand Down
2 changes: 1 addition & 1 deletion nuxt.config.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import words from "./dataset/words.json";
import tags from "./dataset/tags.json";
import words from "./dataset/words.json";

const isLocal = !process.env.SERVER_ENV || process.env.SERVER_ENV === "local";

Expand Down
Loading

0 comments on commit 8b957a3

Please sign in to comment.