lint: handle more oxlint warnings

This commit is contained in:
MiniDigger | Martin 2024-08-29 20:07:35 +02:00
parent ce2c73fb4c
commit 6db55be779
5 changed files with 8 additions and 8 deletions

View File

@ -46,12 +46,12 @@ for (const version of selected.value) {
// TODO All of this is horrible // TODO All of this is horrible
watch(selectedParents, (oldValue, newValue) => { watch(selectedParents, (oldValue, newValue) => {
handleRemovedParent([...newValue.filter((x) => !oldValue.includes(x))]); handleRemovedParent(newValue.filter((x) => !oldValue.includes(x)));
handleAddedParent([...oldValue.filter((x) => !newValue.includes(x))]); handleAddedParent(oldValue.filter((x) => !newValue.includes(x)));
}); });
watch(selectedSub, (oldValue, newValue) => { watch(selectedSub, (oldValue, newValue) => {
handleRemovedSub([...newValue.filter((x) => !oldValue.includes(x))]); handleRemovedSub(newValue.filter((x) => !oldValue.includes(x)));
handleAddedSub([...oldValue.filter((x) => !newValue.includes(x))]); handleAddedSub(oldValue.filter((x) => !newValue.includes(x)));
}); });
function handleRemovedParent(removedVersions: string[]) { function handleRemovedParent(removedVersions: string[]) {

View File

@ -59,7 +59,7 @@ const requestParams = computed(() => {
const { actionLogs } = useActionLogs(() => requestParams.value, router); const { actionLogs } = useActionLogs(() => requestParams.value, router);
function updateSort(col: string, sorter: Record<string, number>) { function updateSort(col: string, sorter: Record<string, number>) {
sort.value = [...Object.keys(sorter)] sort.value = Object.keys(sorter)
.map((k) => { .map((k) => {
const val = sorter[k]; const val = sorter[k];
if (val === -1) return "-" + k; if (val === -1) return "-" + k;

View File

@ -33,7 +33,7 @@ const requestParams = computed(() => {
const { users } = useUsers(() => requestParams.value); const { users } = useUsers(() => requestParams.value);
function updateSort(col: string, sorter: Record<string, number>) { function updateSort(col: string, sorter: Record<string, number>) {
sort.value = [...Object.keys(sorter)] sort.value = Object.keys(sorter)
.map((k) => { .map((k) => {
const val = sorter[k]; const val = sorter[k];
if (val === -1) return "-" + k; if (val === -1) return "-" + k;

View File

@ -26,7 +26,7 @@ const requestParams = computed(() => {
const { authors } = useAuthors(() => requestParams.value); const { authors } = useAuthors(() => requestParams.value);
function updateSort(col: string, sorter: Record<string, number>) { function updateSort(col: string, sorter: Record<string, number>) {
sort.value = [...Object.keys(sorter)] sort.value = Object.keys(sorter)
.map((k) => { .map((k) => {
const val = sorter[k]; const val = sorter[k];
if (val === -1) return "-" + k; if (val === -1) return "-" + k;

View File

@ -27,7 +27,7 @@ const requestParams = computed(() => {
const { staff } = useStaff(() => requestParams.value); const { staff } = useStaff(() => requestParams.value);
function updateSort(col: string, sorter: Record<string, number>) { function updateSort(col: string, sorter: Record<string, number>) {
sort.value = [...Object.keys(sorter)] sort.value = Object.keys(sorter)
.map((k) => { .map((k) => {
const val = sorter[k]; const val = sorter[k];
if (val === -1) return "-" + k; if (val === -1) return "-" + k;