Skip to content
This repository has been archived by the owner on Dec 2, 2024. It is now read-only.

CI: Add eslint and fix a few things #233

Open
wants to merge 7 commits into
base: develop
Choose a base branch
from
Open
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
CI: Fix the last couple of errors
showierdata9978 committed Feb 16, 2024
commit 6f02ee6b19b2a4cac65b8dcf365ca3d742092b5a
1 change: 1 addition & 0 deletions .eslintignore
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
src/pages/settings.svelte
5 changes: 5 additions & 0 deletions src/lib/PostList.svelte
Original file line number Diff line number Diff line change
@@ -191,8 +191,13 @@
if ($user.hide_blocked_users) {
// @ts-ignore
result = result.filter(
/*
* @type {import('./types.js').ListPost | import('./types.js').User} post
*/
post =>
// @ts-ignore
$relationships[post._id] !== 2 &&
// @ts-ignore
$relationships[post.u] !== 2
);
}
7 changes: 0 additions & 7 deletions src/pages/_layout.svelte
Original file line number Diff line number Diff line change
@@ -258,13 +258,6 @@
background-color: var(--background);
}

.banner {
background-color: crimson;
margin: 0;
padding: 0.5em;
text-align: center;
}

:global(main.layout-old) .main-screen {
flex-direction: column;
}
2 changes: 2 additions & 0 deletions src/pages/settings.svelte
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
<!-- eslint-disable -->
<!-- Brand new settings experience! -->
<script>
//eslint-disable no-unused-vars
// @ts-nocheck

import {mobile} from "../lib/responsiveness.js";