Skip to content

Commit

Permalink
linting & formatting
Browse files Browse the repository at this point in the history
  • Loading branch information
lmoertl committed Dec 1, 2023
1 parent 39f5823 commit e9e3fbb
Show file tree
Hide file tree
Showing 7 changed files with 13 additions and 14 deletions.
3 changes: 2 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -105,7 +105,8 @@
"plugin:eslint-plugin-tailwindcss/recommended"
],
"rules": {
"@typescript-eslint/ban-ts-comment": "off"
"@typescript-eslint/ban-ts-comment": "off",
"require-atomic-updates": "off"
}
},
"lint-staged": {
Expand Down
2 changes: 1 addition & 1 deletion src/components/DataDisplay/DataDisplayKeywordInContext.vue
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ const headers = ref([
]);
function open(item: KeywordInContext) {
console.log("open", { item });
// console.log("open", { item });
selectedKWIC.value = item;
}
Expand Down
8 changes: 4 additions & 4 deletions src/components/MapChart.vue
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@
import { mapAustria } from "~/assets/mapAustria.ts";
// import { CorpusQuery } from "~/types/query";
// const props = defineProps({ query: { type: CorpusQuery } });
const props = defineProps(["query"]);
const props = defineProps({ query: { type: CorpusQuery } });
// const props = defineProps(["query"]);
const usedRegion = ["amitte", "aost", "asuedost", "awest"];
Expand All @@ -14,12 +14,12 @@ const chartOptions = computed(() => {
]);
const max = data
.filter(([region]) => {
console.log({ region });
// console.log({ region });
return usedRegion.includes(region);
})
.map(([, a]) => a)
.reduce((a, b) => (a > b ? a : b), 0);
console.log({ max });
// console.log({ max });
return {
chart: {
map: mapAustria,
Expand Down
4 changes: 2 additions & 2 deletions src/composables/useKeywordInContextSearch.ts
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ export function useKeywordInContextSearch() {
});
const keywordInContext = data.value as KeywordInContextData;
// console.log('keywordInContext', { keywordInContext: keywordInContext.value });
// eslint-disable
// eslint-disable require-atomic-updates
// @ts-ignore
query.data.keywordInContext = keywordInContext.Lines.map(
({ Tbl_refs, Left, Kwic, toknum, Right }) => ({
Expand All @@ -42,7 +42,7 @@ export function useKeywordInContextSearch() {
}),
);
// eslint-enable
query.loading.keywordInContext = false; // eslint-disable-line require-atomic-updates
query.loading.keywordInContext = false;
};

return { getKeywordInContext };
Expand Down
1 change: 0 additions & 1 deletion src/composables/useWordlist.ts
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,6 @@ export function useWordlist() {
},
});
wordlist.value = response as unknown as Array<string>;
// eslint-disable-next-line require-atomic-updates
loading.value = false;
}

Expand Down
1 change: 0 additions & 1 deletion src/composables/useYearlyFrequenciesSearch.ts
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,6 @@ export function useYearlyFrequenciesSearch() {
relative: rel,
});
});
// eslint-disable-next-line require-atomic-updates
query.loading.yearlyFrequencies = false;
};

Expand Down
8 changes: 4 additions & 4 deletions src/pages/corpsum.vue
Original file line number Diff line number Diff line change
Expand Up @@ -28,9 +28,9 @@ const t = useTranslations("Corpsum");
const queryStore = useQuery();
const { queries } = storeToRefs(queryStore);
const elementsPerRow = computed(() => {
return 1;
});
// const elementsPerRow = computed(() => {
// return 1;
// });
</script>

<template>
Expand All @@ -44,7 +44,7 @@ const elementsPerRow = computed(() => {
<Search></Search>
<!-- <v-data-table /> -->
<VContainer>
<div class="" :class="['grid', 'gap-3', `grid-cols-${elementsPerRow}`]">
<div class="" :class="['grid', 'gap-3', `grid-cols-1`]">
<!-- <DisplayCard v-for="i in 2" :key="i" :title="titles[i]"></DisplayCard> -->

<DataDisplayYearlyFrequencies
Expand Down

0 comments on commit e9e3fbb

Please sign in to comment.