mirror of
https://github.com/mastodon/mastodon.git
synced 2025-05-11 20:21:10 +00:00
chore(deps): update eslint (non-major) (#33061)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com> Co-authored-by: Renaud Chaput <renchap@gmail.com>
This commit is contained in:
parent
64719aa4ee
commit
d2ce9a6064
|
@ -151,7 +151,7 @@ export const Hashtag: React.FC<HashtagProps> = ({
|
||||||
<Sparklines
|
<Sparklines
|
||||||
width={50}
|
width={50}
|
||||||
height={28}
|
height={28}
|
||||||
data={history ? history : Array.from(Array(7)).map(() => 0)}
|
data={history ?? Array.from(Array(7)).map(() => 0)}
|
||||||
>
|
>
|
||||||
<SparklinesCurve style={{ fill: 'none' }} />
|
<SparklinesCurve style={{ fill: 'none' }} />
|
||||||
</Sparklines>
|
</Sparklines>
|
||||||
|
|
|
@ -149,6 +149,7 @@ export class IconButton extends PureComponent<Props, States> {
|
||||||
onClick={this.handleClick}
|
onClick={this.handleClick}
|
||||||
onMouseDown={this.handleMouseDown}
|
onMouseDown={this.handleMouseDown}
|
||||||
onKeyDown={this.handleKeyDown}
|
onKeyDown={this.handleKeyDown}
|
||||||
|
// eslint-disable-next-line @typescript-eslint/no-deprecated
|
||||||
onKeyPress={this.handleKeyPress}
|
onKeyPress={this.handleKeyPress}
|
||||||
style={style}
|
style={style}
|
||||||
tabIndex={tabIndex}
|
tabIndex={tabIndex}
|
||||||
|
|
|
@ -8,14 +8,15 @@ import type { Search, ShortCodesToEmojiData } from './emoji_compressed';
|
||||||
import emojiCompressed from './emoji_compressed';
|
import emojiCompressed from './emoji_compressed';
|
||||||
import { unicodeToUnifiedName } from './unicode_to_unified_name';
|
import { unicodeToUnifiedName } from './unicode_to_unified_name';
|
||||||
|
|
||||||
type Emojis = {
|
type Emojis = Record<
|
||||||
[key in NonNullable<keyof ShortCodesToEmojiData>]: {
|
NonNullable<keyof ShortCodesToEmojiData>,
|
||||||
|
{
|
||||||
native: BaseEmoji['native'];
|
native: BaseEmoji['native'];
|
||||||
search: Search;
|
search: Search;
|
||||||
short_names: Emoji['short_names'];
|
short_names: Emoji['short_names'];
|
||||||
unified: Emoji['unified'];
|
unified: Emoji['unified'];
|
||||||
};
|
}
|
||||||
};
|
>;
|
||||||
|
|
||||||
const [
|
const [
|
||||||
shortCodesToEmojiData,
|
shortCodesToEmojiData,
|
||||||
|
|
|
@ -9,12 +9,13 @@ import type {
|
||||||
import emojiCompressed from './emoji_compressed';
|
import emojiCompressed from './emoji_compressed';
|
||||||
import { unicodeToFilename } from './unicode_to_filename';
|
import { unicodeToFilename } from './unicode_to_filename';
|
||||||
|
|
||||||
type UnicodeMapping = {
|
type UnicodeMapping = Record<
|
||||||
[key in FilenameData[number][0]]: {
|
FilenameData[number][0],
|
||||||
|
{
|
||||||
shortCode: ShortCodesToEmojiDataKey;
|
shortCode: ShortCodesToEmojiDataKey;
|
||||||
filename: FilenameData[number][number];
|
filename: FilenameData[number][number];
|
||||||
};
|
}
|
||||||
};
|
>;
|
||||||
|
|
||||||
const [
|
const [
|
||||||
shortCodesToEmojiData,
|
shortCodesToEmojiData,
|
||||||
|
|
|
@ -17,7 +17,7 @@ export const ColumnSettings: React.FC = () => {
|
||||||
|
|
||||||
const dispatch = useAppDispatch();
|
const dispatch = useAppDispatch();
|
||||||
const onChange = useCallback(
|
const onChange = useCallback(
|
||||||
(key: string, checked: boolean) => {
|
(key: string[], checked: boolean) => {
|
||||||
dispatch(changeSetting(['home', ...key], checked));
|
dispatch(changeSetting(['home', ...key], checked));
|
||||||
},
|
},
|
||||||
[dispatch],
|
[dispatch],
|
||||||
|
|
|
@ -101,6 +101,7 @@ const EmbedModal: React.FC<{
|
||||||
/>
|
/>
|
||||||
|
|
||||||
<iframe
|
<iframe
|
||||||
|
// eslint-disable-next-line @typescript-eslint/no-deprecated
|
||||||
frameBorder='0'
|
frameBorder='0'
|
||||||
ref={iframeRef}
|
ref={iframeRef}
|
||||||
sandbox='allow-scripts allow-same-origin'
|
sandbox='allow-scripts allow-same-origin'
|
||||||
|
|
|
@ -181,10 +181,10 @@
|
||||||
"eslint-define-config": "^2.0.0",
|
"eslint-define-config": "^2.0.0",
|
||||||
"eslint-import-resolver-typescript": "^3.5.5",
|
"eslint-import-resolver-typescript": "^3.5.5",
|
||||||
"eslint-plugin-formatjs": "^5.0.0",
|
"eslint-plugin-formatjs": "^5.0.0",
|
||||||
"eslint-plugin-import": "~2.30.0",
|
"eslint-plugin-import": "~2.31.0",
|
||||||
"eslint-plugin-jsdoc": "^50.0.0",
|
"eslint-plugin-jsdoc": "^50.0.0",
|
||||||
"eslint-plugin-jsx-a11y": "~6.10.0",
|
"eslint-plugin-jsx-a11y": "~6.10.0",
|
||||||
"eslint-plugin-promise": "~7.1.0",
|
"eslint-plugin-promise": "~7.2.0",
|
||||||
"eslint-plugin-react": "^7.33.2",
|
"eslint-plugin-react": "^7.33.2",
|
||||||
"eslint-plugin-react-hooks": "^5.0.0",
|
"eslint-plugin-react-hooks": "^5.0.0",
|
||||||
"husky": "^9.0.11",
|
"husky": "^9.0.11",
|
||||||
|
|
Loading…
Reference in New Issue
Block a user