linter-unfuck
This commit is contained in:
parent
8be277c602
commit
c1729ba18b
|
@ -68,6 +68,7 @@ module.exports = {
|
||||||
'unicorn/prefer-dom-node-append': 'off', // FIXME
|
'unicorn/prefer-dom-node-append': 'off', // FIXME
|
||||||
'unicorn/prefer-top-level-await': 'warn',
|
'unicorn/prefer-top-level-await': 'warn',
|
||||||
'unicorn/consistent-function-scoping': 'warn',
|
'unicorn/consistent-function-scoping': 'warn',
|
||||||
|
'sonarjs/no-duplicate-string': 'warn',
|
||||||
|
|
||||||
// Promise
|
// Promise
|
||||||
// 'promise/catch-or-return': 'off', // Should be enabled
|
// 'promise/catch-or-return': 'off', // Should be enabled
|
||||||
|
|
|
@ -66,7 +66,6 @@ export const InboxView = () => {
|
||||||
const [postMessageText, setPostMessageText] = createSignal('')
|
const [postMessageText, setPostMessageText] = createSignal('')
|
||||||
const [loading, setLoading] = createSignal<boolean>(false)
|
const [loading, setLoading] = createSignal<boolean>(false)
|
||||||
const { session } = useSession()
|
const { session } = useSession()
|
||||||
const currentSlug = createMemo(() => session()?.user?.slug)
|
|
||||||
|
|
||||||
// Поиск по диалогам
|
// Поиск по диалогам
|
||||||
const getQuery = (query) => {
|
const getQuery = (query) => {
|
||||||
|
@ -167,7 +166,7 @@ export const InboxView = () => {
|
||||||
<div class="holder">
|
<div class="holder">
|
||||||
<div class="dialogs">
|
<div class="dialogs">
|
||||||
<For each={chats()}>
|
<For each={chats()}>
|
||||||
{(chat) => <DialogCard members={chat.members} ownSlug={currentSlug()} />}
|
{(chat) => <DialogCard members={[...chat.members, session().user.id]} />}
|
||||||
</For>
|
</For>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
Loading…
Reference in New Issue
Block a user