chore(backend): Resolve import/no-default-export
rule violations (#11732)
* Disable `import/no-default-export` properly * Disable `import/no-default-export`
This commit is contained in:
@@ -5,4 +5,5 @@
|
||||
|
||||
import { secureRndstr } from '@/misc/secure-rndstr.js';
|
||||
|
||||
// eslint-disable-next-line import/no-default-export
|
||||
export default () => secureRndstr(16);
|
||||
|
@@ -3,6 +3,7 @@
|
||||
* SPDX-License-Identifier: AGPL-3.0-only
|
||||
*/
|
||||
|
||||
// eslint-disable-next-line import/no-default-export
|
||||
export default function(reaction: string): string {
|
||||
switch (reaction) {
|
||||
case 'like': return '👍';
|
||||
|
@@ -3,4 +3,5 @@
|
||||
* SPDX-License-Identifier: AGPL-3.0-only
|
||||
*/
|
||||
|
||||
// eslint-disable-next-line import/no-default-export
|
||||
export default (token: string) => token.length === 16;
|
||||
|
@@ -5,6 +5,7 @@
|
||||
|
||||
import type { MiNote } from '@/models/entities/Note.js';
|
||||
|
||||
// eslint-disable-next-line import/no-default-export
|
||||
export default function(note: MiNote): boolean {
|
||||
return note.renoteId != null && (note.text != null || note.hasPoll || (note.fileIds != null && note.fileIds.length > 0));
|
||||
}
|
||||
|
Reference in New Issue
Block a user