mirror of
https://github.com/mastodon/mastodon.git
synced 2025-01-08 19:35:11 +01:00
Remove no-unsafe-return rule from eslint-disable in emoji_utils.ts
Removed the no-unsafe-return rule from the eslint-disable and eslint-enable comments in the emoji_utils.ts file, as it is no longer required. This helps to improve code readability and reduces unnecessary complexity.
This commit is contained in:
parent
70e35f837c
commit
34fce776fc
@ -126,7 +126,7 @@ function getData(...[emoji, skin, set]: GetDataArgs) {
|
|||||||
The version of [the referenced source code]{@link https://github.com/missive/emoji-mart/blob/5f2ffcc/src/utils/index.js} does not match that of DefinitelyTyped.
|
The version of [the referenced source code]{@link https://github.com/missive/emoji-mart/blob/5f2ffcc/src/utils/index.js} does not match that of DefinitelyTyped.
|
||||||
It is also old, and non-existent properties have been added or removed, making it difficult to achieve type consistency.
|
It is also old, and non-existent properties have been added or removed, making it difficult to achieve type consistency.
|
||||||
*/
|
*/
|
||||||
/* eslint-disable @typescript-eslint/no-unsafe-argument, @typescript-eslint/no-unsafe-assignment, @typescript-eslint/no-unsafe-call, @typescript-eslint/no-unsafe-member-access, @typescript-eslint/no-unsafe-return */
|
/* eslint-disable @typescript-eslint/no-unsafe-argument, @typescript-eslint/no-unsafe-assignment, @typescript-eslint/no-unsafe-call, @typescript-eslint/no-unsafe-member-access */
|
||||||
/* eslint-disable-next-line @typescript-eslint/no-explicit-any */
|
/* eslint-disable-next-line @typescript-eslint/no-explicit-any */
|
||||||
let emojiData: any = {};
|
let emojiData: any = {};
|
||||||
|
|
||||||
@ -197,7 +197,7 @@ function getData(...[emoji, skin, set]: GetDataArgs) {
|
|||||||
|
|
||||||
return emojiData as RawEmoji;
|
return emojiData as RawEmoji;
|
||||||
|
|
||||||
/* eslint-enable @typescript-eslint/no-unsafe-argument, @typescript-eslint/no-unsafe-assignment, @typescript-eslint/no-unsafe-call, @typescript-eslint/no-unsafe-member-access, @typescript-eslint/no-unsafe-return */
|
/* eslint-enable @typescript-eslint/no-unsafe-argument, @typescript-eslint/no-unsafe-assignment, @typescript-eslint/no-unsafe-call, @typescript-eslint/no-unsafe-member-access */
|
||||||
}
|
}
|
||||||
|
|
||||||
// TODO: General array operations not related to emojis. Consider separating them into separate files.
|
// TODO: General array operations not related to emojis. Consider separating them into separate files.
|
||||||
|
Loading…
Reference in New Issue
Block a user