Page Menu
Home
Phabricator
Search
Configure Global Search
Log In
Files
F3401440
D10542.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Flag For Later
Size
30 KB
Referenced Files
None
Subscribers
None
D10542.diff
View Options
diff --git a/keyserver/jest-setup.js b/keyserver/jest-setup.js
--- a/keyserver/jest-setup.js
+++ b/keyserver/jest-setup.js
@@ -4,5 +4,4 @@
// crypto.webcrypto was introduced in Node 15.10.0.
// It is not defined in Flow so we need a cast
-// eslint-disable-next-line no-undef -- "global is not defined"
global.crypto = (crypto: any).webcrypto;
diff --git a/lib/webpack/shared.cjs b/lib/webpack/shared.cjs
--- a/lib/webpack/shared.cjs
+++ b/lib/webpack/shared.cjs
@@ -7,7 +7,6 @@
async function getConfig(configName) {
const { getCommConfig } = await import(
- // eslint-disable-next-line monorepo/no-relative-import
'../../keyserver/dist/lib/utils/comm-config.js'
);
return await getCommConfig(configName);
diff --git a/native/account/logged-out-modal.react.js b/native/account/logged-out-modal.react.js
--- a/native/account/logged-out-modal.react.js
+++ b/native/account/logged-out-modal.react.js
@@ -82,7 +82,6 @@
let initialAppLoad = true;
const safeAreaEdges = ['top', 'bottom'];
-/* eslint-disable import/no-named-as-default-member */
const {
Value,
Node,
@@ -104,7 +103,6 @@
stopClock,
clockRunning,
} = Animated;
-/* eslint-enable import/no-named-as-default-member */
export type LoggedOutMode =
| 'loading'
diff --git a/native/account/register-panel.react.js b/native/account/register-panel.react.js
--- a/native/account/register-panel.react.js
+++ b/native/account/register-panel.react.js
@@ -102,7 +102,6 @@
onPasswordKeyPress = this.onPasswordKeyPress;
}
- /* eslint-disable react-native/no-raw-text */
const privatePolicyNotice = (
<View style={styles.notice}>
<Text style={styles.noticeText}>
@@ -121,7 +120,6 @@
</Text>
</View>
);
- /* eslint-enable react-native/no-raw-text */
return (
<Panel opacityValue={this.props.opacityValue} style={styles.container}>
diff --git a/native/account/registration/registration-terms.react.js b/native/account/registration/registration-terms.react.js
--- a/native/account/registration/registration-terms.react.js
+++ b/native/account/registration/registration-terms.react.js
@@ -60,7 +60,6 @@
const styles = useStyles(unboundStyles);
- /* eslint-disable react-native/no-raw-text */
const termsNotice = (
<Text style={styles.body}>
By registering, you are agreeing to our{' '}
@@ -74,7 +73,6 @@
.
</Text>
);
- /* eslint-enable react-native/no-raw-text */
return (
<RegistrationContainer>
diff --git a/native/chat/chat-input-bar.react.js b/native/chat/chat-input-bar.react.js
--- a/native/chat/chat-input-bar.react.js
+++ b/native/chat/chat-input-bar.react.js
@@ -146,10 +146,8 @@
mentionTypeaheadTooltipActions,
} from '../utils/typeahead-utils.js';
-/* eslint-disable import/no-named-as-default-member */
const { Value, Clock, block, set, cond, neq, sub, interpolateNode, stopClock } =
Animated;
-/* eslint-enable import/no-named-as-default-member */
const expandoButtonsAnimationConfig = {
duration: 150,
diff --git a/native/chat/chat-thread-list-search.react.js b/native/chat/chat-thread-list-search.react.js
--- a/native/chat/chat-thread-list-search.react.js
+++ b/native/chat/chat-thread-list-search.react.js
@@ -13,9 +13,7 @@
import { AnimatedView, type AnimatedStyleObj } from '../types/styles.js';
import { animateTowards } from '../utils/animation-utils.js';
-/* eslint-disable import/no-named-as-default-member */
const { Node, Value, interpolateNode, useValue } = Animated;
-/* eslint-enable import/no-named-as-default-member */
type Props = {
+searchText: string,
@@ -122,9 +120,7 @@
disabled={searchStatus !== 'active'}
style={styles.cancelSearchButton}
>
- {/* eslint-disable react-native/no-raw-text */}
<Animated.Text style={buttonStyle}>Cancel</Animated.Text>
- {/* eslint-enable react-native/no-raw-text */}
</Button>
),
[buttonStyle, onSearchCancel, searchStatus, styles.cancelSearchButton],
diff --git a/native/chat/chat.react.js b/native/chat/chat.react.js
--- a/native/chat/chat.react.js
+++ b/native/chat/chat.react.js
@@ -109,14 +109,12 @@
const homeChatThreadListOptions = {
title: 'Focused',
- // eslint-disable-next-line react/display-name
tabBarIcon: ({ color }: { +color: string, ... }) => (
<SWMansionIcon name="home-1" size={22} style={{ color }} />
),
};
const backgroundChatThreadListOptions = {
title: 'Background',
- // eslint-disable-next-line react/display-name
tabBarIcon: ({ color }: { +color: string, ... }) => (
<SWMansionIcon name="bell-disabled" size={22} style={{ color }} />
),
@@ -251,8 +249,6 @@
!threadIsPending(route.params.threadInfo.id) && !isSearchEmpty;
return {
- // This is a render prop, not a component
- // eslint-disable-next-line react/display-name
headerTitle: (props: HeaderTitleInputProps) => (
<MessageListHeaderTitle
threadInfo={route.params.threadInfo}
@@ -263,9 +259,7 @@
/>
),
headerRight: areSettingsEnabled
- ? // This is a render prop, not a component
- // eslint-disable-next-line react/display-name
- () => (
+ ? () => (
<View style={headerRightStyle}>
<SearchMessagesButton
threadInfo={route.params.threadInfo}
@@ -294,7 +288,6 @@
+route: NavigationRoute<'ThreadSettings'>,
...
}) => ({
- // eslint-disable-next-line react/display-name
headerTitle: (props: HeaderTitleInputProps) => (
<ThreadSettingsHeaderTitle
threadInfo={route.params.threadInfo}
@@ -316,7 +309,6 @@
headerBackTitleVisible: false,
};
const messageSearchOptions = {
- // eslint-disable-next-line react/display-name
headerTitle: () => <SearchHeader />,
headerBackTitleVisible: false,
headerTitleContainerStyle: {
@@ -333,7 +325,6 @@
+route: NavigationRoute<'ChangeRolesScreen'>,
...
}) => ({
- // eslint-disable-next-line react/display-name
headerLeft: (headerLeftProps: StackHeaderLeftButtonProps) => (
<ChangeRolesHeaderLeftButton {...headerLeftProps} route={route} />
),
diff --git a/native/chat/compose-subchannel.react.js b/native/chat/compose-subchannel.react.js
--- a/native/chat/compose-subchannel.react.js
+++ b/native/chat/compose-subchannel.react.js
@@ -150,7 +150,6 @@
const { setOptions } = navigation;
React.useEffect(() => {
setOptions({
- // eslint-disable-next-line react/display-name
headerRight: () => (
<LinkButton
text="Create"
diff --git a/native/chat/inner-robotext-message.react.js b/native/chat/inner-robotext-message.react.js
--- a/native/chat/inner-robotext-message.react.js
+++ b/native/chat/inner-robotext-message.react.js
@@ -64,7 +64,6 @@
const textParts = React.useMemo(() => {
const darkColor = activeTheme === 'dark';
return entityTextToReact(robotextWithENSNames, threadID, {
- // eslint-disable-next-line react/display-name
renderText: ({ text }) => (
<Markdown
style={styles.robotext}
@@ -73,13 +72,10 @@
{text}
</Markdown>
),
- // eslint-disable-next-line react/display-name
renderThread: ({ id, name }) => <ThreadEntity id={id} name={name} />,
- // eslint-disable-next-line react/display-name
renderUser: ({ userID, usernameText }) => (
<UserEntity userID={userID} usernameText={usernameText} />
),
- // eslint-disable-next-line react/display-name
renderColor: ({ hex }) => <ColorEntity color={hex} />,
});
}, [robotextWithENSNames, activeTheme, threadID, styles.robotext]);
diff --git a/native/chat/inner-text-message.react.js b/native/chat/inner-text-message.react.js
--- a/native/chat/inner-text-message.react.js
+++ b/native/chat/inner-text-message.react.js
@@ -26,9 +26,7 @@
import { useColors, colors } from '../themes/colors.js';
import type { ChatTextMessageInfoItemWithHeight } from '../types/chat-types.js';
-/* eslint-disable import/no-named-as-default-member */
const { Node } = Animated;
-/* eslint-enable import/no-named-as-default-member */
function dummyNodeForTextMessageHeightMeasurement(
text: string,
diff --git a/native/chat/multimedia-message-multimedia.react.js b/native/chat/multimedia-message-multimedia.react.js
--- a/native/chat/multimedia-message-multimedia.react.js
+++ b/native/chat/multimedia-message-multimedia.react.js
@@ -33,9 +33,7 @@
AnimatedView,
} from '../types/styles.js';
-/* eslint-disable import/no-named-as-default-member */
const { Node, sub, interpolateNode, Extrapolate } = Animated;
-/* eslint-enable import/no-named-as-default-member */
type BaseProps = {
+mediaInfo: MediaInfo,
diff --git a/native/chat/multimedia-message-tooltip-button.react.js b/native/chat/multimedia-message-tooltip-button.react.js
--- a/native/chat/multimedia-message-tooltip-button.react.js
+++ b/native/chat/multimedia-message-tooltip-button.react.js
@@ -24,9 +24,7 @@
import { useTooltipActions } from '../tooltip/tooltip-hooks.js';
import type { TooltipRoute } from '../tooltip/tooltip.react.js';
-/* eslint-disable import/no-named-as-default-member */
const { Node, Extrapolate, interpolateNode } = Animated;
-/* eslint-enable import/no-named-as-default-member */
function noop() {}
diff --git a/native/chat/reaction-selection-popover.react.js b/native/chat/reaction-selection-popover.react.js
--- a/native/chat/reaction-selection-popover.react.js
+++ b/native/chat/reaction-selection-popover.react.js
@@ -31,9 +31,7 @@
+sendReaction: (reaction: string) => mixed,
};
-/* eslint-disable import/no-named-as-default-member */
const { Extrapolate, interpolateNode, add, multiply } = Animated;
-/* eslint-enable import/no-named-as-default-member */
function ReactionSelectionPopover<RouteName: $Keys<TooltipModalParamList>>(
props: Props<RouteName>,
diff --git a/native/chat/robotext-message-tooltip-button.react.js b/native/chat/robotext-message-tooltip-button.react.js
--- a/native/chat/robotext-message-tooltip-button.react.js
+++ b/native/chat/robotext-message-tooltip-button.react.js
@@ -23,9 +23,7 @@
import { useTooltipActions } from '../tooltip/tooltip-hooks.js';
import type { TooltipRoute } from '../tooltip/tooltip.react.js';
-/* eslint-disable import/no-named-as-default-member */
const { Node, interpolateNode, Extrapolate } = Animated;
-/* eslint-enable import/no-named-as-default-member */
type Props = {
+navigation: AppNavigationProp<'RobotextMessageTooltipModal'>,
diff --git a/native/chat/text-message-tooltip-button.react.js b/native/chat/text-message-tooltip-button.react.js
--- a/native/chat/text-message-tooltip-button.react.js
+++ b/native/chat/text-message-tooltip-button.react.js
@@ -26,9 +26,7 @@
import { useTooltipActions } from '../tooltip/tooltip-hooks.js';
import type { TooltipRoute } from '../tooltip/tooltip.react.js';
-/* eslint-disable import/no-named-as-default-member */
const { Node, interpolateNode, Extrapolate } = Animated;
-/* eslint-enable import/no-named-as-default-member */
type Props = {
+navigation: AppNavigationProp<'TextMessageTooltipModal'>,
diff --git a/native/chat/utils.js b/native/chat/utils.js
--- a/native/chat/utils.js
+++ b/native/chat/utils.js
@@ -41,7 +41,6 @@
} from '../types/layout-types.js';
import type { AnimatedViewStyle } from '../types/styles.js';
-/* eslint-disable import/no-named-as-default-member */
const {
Node,
Extrapolate,
@@ -53,7 +52,6 @@
cond,
sub,
} = Animated;
-/* eslint-enable import/no-named-as-default-member */
function textMessageItemHeight(
item: ChatTextMessageInfoItemWithHeight,
diff --git a/native/community-creation/community-configuration.react.js b/native/community-creation/community-configuration.react.js
--- a/native/community-creation/community-configuration.react.js
+++ b/native/community-creation/community-configuration.react.js
@@ -41,7 +41,6 @@
const createNewCommunityLoadingStatusSelector =
createLoadingStatusSelector(newThreadActionTypes);
-// eslint-disable-next-line no-unused-vars
function CommunityConfiguration(props: Props): React.Node {
const styles = useStyles(unboundStyles);
const colors = useColors();
diff --git a/native/community-creation/community-creation-members.react.js b/native/community-creation/community-creation-members.react.js
--- a/native/community-creation/community-creation-members.react.js
+++ b/native/community-creation/community-creation-members.react.js
@@ -112,7 +112,6 @@
React.useEffect(() => {
setOptions({
- // eslint-disable-next-line react/display-name
headerRight: () => {
if (changeThreadSettingsLoadingStatus === 'loading') {
return (
diff --git a/native/components/full-screen-view-modal.react.js b/native/components/full-screen-view-modal.react.js
--- a/native/components/full-screen-view-modal.react.js
+++ b/native/components/full-screen-view-modal.react.js
@@ -49,7 +49,6 @@
runTiming,
} from '../utils/animation-utils.js';
-/* eslint-disable import/no-named-as-default-member */
const {
Value,
Node,
@@ -82,7 +81,6 @@
clockRunning,
decay,
} = Animated;
-/* eslint-enable import/no-named-as-default-member */
function scaleDelta(value: Node, gestureActive: Node): Node {
const diffThisFrame = new Value(1);
diff --git a/native/components/gesture-touchable-opacity.react.js b/native/components/gesture-touchable-opacity.react.js
--- a/native/components/gesture-touchable-opacity.react.js
+++ b/native/components/gesture-touchable-opacity.react.js
@@ -19,7 +19,6 @@
useReanimatedValueForBoolean,
} from '../utils/animation-utils.js';
-/* eslint-disable import/no-named-as-default-member */
const {
Clock,
block,
@@ -35,7 +34,6 @@
clockRunning,
useValue,
} = Animated;
-/* eslint-enable import/no-named-as-default-member */
const pressAnimationSpec = {
duration: 150,
diff --git a/native/markdown/rules.react.js b/native/markdown/rules.react.js
--- a/native/markdown/rules.react.js
+++ b/native/markdown/rules.react.js
@@ -95,7 +95,6 @@
content: SimpleMarkdown.parseInline(parse, content, state),
};
},
- // eslint-disable-next-line react/display-name
react: (
node: SharedMarkdown.SingleASTNode,
output: SharedMarkdown.Output<SharedMarkdown.ReactElement>,
@@ -135,7 +134,6 @@
mailto: SimpleMarkdown.defaultRules.mailto,
em: {
...SimpleMarkdown.defaultRules.em,
- // eslint-disable-next-line react/display-name
react: (
node: SharedMarkdown.SingleASTNode,
output: SharedMarkdown.Output<SharedMarkdown.ReactElement>,
@@ -148,7 +146,6 @@
},
strong: {
...SimpleMarkdown.defaultRules.strong,
- // eslint-disable-next-line react/display-name
react: (
node: SharedMarkdown.SingleASTNode,
output: SharedMarkdown.Output<SharedMarkdown.ReactElement>,
@@ -161,7 +158,6 @@
},
u: {
...SimpleMarkdown.defaultRules.u,
- // eslint-disable-next-line react/display-name
react: (
node: SharedMarkdown.SingleASTNode,
output: SharedMarkdown.Output<SharedMarkdown.ReactElement>,
@@ -174,7 +170,6 @@
},
del: {
...SimpleMarkdown.defaultRules.del,
- // eslint-disable-next-line react/display-name
react: (
node: SharedMarkdown.SingleASTNode,
output: SharedMarkdown.Output<SharedMarkdown.ReactElement>,
@@ -198,7 +193,6 @@
content: SimpleMarkdown.parseInline(parse, content, state),
};
},
- // eslint-disable-next-line react/display-name
react: (
node: SharedMarkdown.SingleASTNode,
output: SharedMarkdown.Output<SharedMarkdown.ReactElement>,
@@ -213,7 +207,6 @@
},
inlineCode: {
...SimpleMarkdown.defaultRules.inlineCode,
- // eslint-disable-next-line react/display-name
react: (
node: SharedMarkdown.SingleASTNode,
output: SharedMarkdown.Output<SharedMarkdown.ReactElement>,
@@ -229,7 +222,6 @@
match: SimpleMarkdown.blockRegex(
SharedMarkdown.headingStripFollowingNewlineRegex,
),
- // eslint-disable-next-line react/display-name
react(
node: SharedMarkdown.SingleASTNode,
output: SharedMarkdown.Output<SharedMarkdown.ReactElement>,
@@ -250,7 +242,6 @@
SharedMarkdown.blockQuoteStripFollowingNewlineRegex,
),
parse: SharedMarkdown.parseBlockQuote,
- // eslint-disable-next-line react/display-name
react: (
node: SharedMarkdown.SingleASTNode,
output: SharedMarkdown.Output<SharedMarkdown.ReactElement>,
@@ -283,7 +274,6 @@
content: capture[1].replace(/^ {4}/gm, ''),
};
},
- // eslint-disable-next-line react/display-name
react: (
node: SharedMarkdown.SingleASTNode,
output: SharedMarkdown.Output<SharedMarkdown.ReactElement>,
@@ -389,7 +379,6 @@
match: SharedMarkdown.matchUserMentions(membersMap),
parse: (capture: SharedMarkdown.Capture) =>
SharedMarkdown.parseUserMentions(membersMap, capture),
- // eslint-disable-next-line react/display-name
react: (
node: SharedMarkdown.SingleASTNode,
output: SharedMarkdown.Output<SharedMarkdown.ReactElement>,
@@ -409,7 +398,6 @@
match: SimpleMarkdown.inlineRegex(chatMentionRegex),
parse: (capture: SharedMarkdown.Capture) =>
SharedMarkdown.parseChatMention(chatMentionCandidates, capture),
- // eslint-disable-next-line react/display-name
react: (
node: SharedMarkdown.SingleASTNode,
output: SharedMarkdown.Output<SharedMarkdown.ReactElement>,
diff --git a/native/media/camera-modal.react.js b/native/media/camera-modal.react.js
--- a/native/media/camera-modal.react.js
+++ b/native/media/camera-modal.react.js
@@ -59,7 +59,6 @@
} from '../types/styles.js';
import { clamp, gestureJustEnded } from '../utils/animation-utils.js';
-/* eslint-disable import/no-named-as-default-member */
const {
Value,
Node,
@@ -89,7 +88,6 @@
spring,
SpringUtils,
} = Reanimated;
-/* eslint-enable import/no-named-as-default-member */
const maxZoom = 16;
const zoomUpdateFactor = (() => {
diff --git a/native/media/media-gallery-media.react.js b/native/media/media-gallery-media.react.js
--- a/native/media/media-gallery-media.react.js
+++ b/native/media/media-gallery-media.react.js
@@ -52,7 +52,6 @@
+dimensions: DimensionsInfo,
};
class MediaGalleryMedia extends React.PureComponent<Props> {
- // eslint-disable-next-line import/no-named-as-default-member
focusProgress: Reanimated.Value = new Reanimated.Value(0);
buttonsStyle: AnimatedViewStyle;
mediaStyle: AnimatedStyleObj;
@@ -61,7 +60,6 @@
constructor(props: Props) {
super(props);
- // eslint-disable-next-line import/no-named-as-default-member
const buttonsScale = Reanimated.interpolateNode(this.focusProgress, {
inputRange: [0, 1],
outputRange: [1.3, 1],
@@ -73,7 +71,6 @@
marginBottom: this.props.dimensions.bottomInset,
};
- // eslint-disable-next-line import/no-named-as-default-member
const mediaScale = Reanimated.interpolateNode(this.focusProgress, {
inputRange: [0, 1],
outputRange: [1, 1.3],
@@ -90,7 +87,6 @@
componentDidMount() {
const isActive = MediaGalleryMedia.isActive(this.props);
if (isActive) {
- // eslint-disable-next-line import/no-named-as-default-member
Reanimated.timing(this.focusProgress, {
...reanimatedSpec,
toValue: 1,
@@ -113,13 +109,11 @@
const isActive = MediaGalleryMedia.isActive(this.props);
const wasActive = MediaGalleryMedia.isActive(prevProps);
if (isActive && !wasActive) {
- // eslint-disable-next-line import/no-named-as-default-member
Reanimated.timing(this.focusProgress, {
...reanimatedSpec,
toValue: 1,
}).start();
} else if (!isActive && wasActive) {
- // eslint-disable-next-line import/no-named-as-default-member
Reanimated.timing(this.focusProgress, {
...reanimatedSpec,
toValue: 0,
diff --git a/native/media/video-playback-modal.react.js b/native/media/video-playback-modal.react.js
--- a/native/media/video-playback-modal.react.js
+++ b/native/media/video-playback-modal.react.js
@@ -46,7 +46,6 @@
...
};
-/* eslint-disable import/no-named-as-default-member */
const {
Extrapolate,
and,
diff --git a/native/navigation/overlay-navigator.react.js b/native/navigation/overlay-navigator.react.js
--- a/native/navigation/overlay-navigator.react.js
+++ b/native/navigation/overlay-navigator.react.js
@@ -54,9 +54,7 @@
...OverlayRouterExtraNavigationHelpers,
};
-/* eslint-disable import/no-named-as-default-member */
const { Value, timing, cond, call, lessOrEq, block } = Animated;
-/* eslint-enable import/no-named-as-default-member */
type Scene = {
+route: Route<>,
diff --git a/native/navigation/tab-bar.react.js b/native/navigation/tab-bar.react.js
--- a/native/navigation/tab-bar.react.js
+++ b/native/navigation/tab-bar.react.js
@@ -16,9 +16,7 @@
import { useSelector } from '../redux/redux-utils.js';
import type { LayoutEvent } from '../types/react-native.js';
-/* eslint-disable import/no-named-as-default-member */
const { Value, timing, interpolateNode } = Animated;
-/* eslint-enable import/no-named-as-default-member */
const tabBarAnimationDuration = 200;
@@ -143,8 +141,6 @@
},
});
-// This is a render prop, not a component
-// eslint-disable-next-line react/display-name
const tabBar = (props: Props): React.Node => <TabBar {...props} />;
export { tabBarAnimationDuration, tabBar };
diff --git a/native/navigation/tab-navigator.react.js b/native/navigation/tab-navigator.react.js
--- a/native/navigation/tab-navigator.react.js
+++ b/native/navigation/tab-navigator.react.js
@@ -45,14 +45,12 @@
const calendarTabOptions = {
tabBarLabel: 'Calendar',
- // eslint-disable-next-line react/display-name
tabBarIcon: ({ color }: { +color: string, ... }) => (
<SWMansionIcon name="calendar" style={[styles.icon, { color }]} />
),
};
const getChatTabOptions = (badge: number) => ({
tabBarLabel: 'Inbox',
- // eslint-disable-next-line react/display-name
tabBarIcon: ({ color }: { +color: string, ... }) => (
<SWMansionIcon name="message-square" style={[styles.icon, { color }]} />
),
@@ -60,14 +58,12 @@
});
const profileTabOptions = {
tabBarLabel: 'Profile',
- // eslint-disable-next-line react/display-name
tabBarIcon: ({ color }: { +color: string, ... }) => (
<SWMansionIcon name="user-2" style={[styles.icon, { color }]} />
),
};
const appsTabOptions = {
tabBarLabel: 'Apps',
- // eslint-disable-next-line react/display-name
tabBarIcon: ({ color }: { +color: string, ... }) => (
<SWMansionIcon name="globe-1" style={[styles.icon, { color }]} />
),
diff --git a/native/profile/add-keyserver.react.js b/native/profile/add-keyserver.react.js
--- a/native/profile/add-keyserver.react.js
+++ b/native/profile/add-keyserver.react.js
@@ -77,7 +77,6 @@
React.useEffect(() => {
setOptions({
- // eslint-disable-next-line react/display-name
headerRight: () => (
<HeaderRightTextButton label="Save" onPress={onPressSave} />
),
diff --git a/native/profile/profile.react.js b/native/profile/profile.react.js
--- a/native/profile/profile.react.js
+++ b/native/profile/profile.react.js
@@ -66,12 +66,10 @@
const deleteAccountOptions = { headerTitle: 'Delete account' };
const linkedDevicesOptions = {
headerTitle: 'Linked devices',
- // eslint-disable-next-line react/display-name
headerRight: () => <LinkedDevicesHeaderRightButton />,
};
const keyserverSelectionListOptions = {
headerTitle: 'Keyservers',
- // eslint-disable-next-line react/display-name
headerRight: () => <KeyserverSelectionListHeaderRightButton />,
};
const addKeyserverOptions = { headerTitle: 'Add keyserver' };
diff --git a/native/profile/relationship-list.react.js b/native/profile/relationship-list.react.js
--- a/native/profile/relationship-list.react.js
+++ b/native/profile/relationship-list.react.js
@@ -304,7 +304,6 @@
return;
}
setOptions({
- // eslint-disable-next-line react/display-name
headerRight: () => (
<LinkButton
text="Save"
diff --git a/native/redux/persist.js b/native/redux/persist.js
--- a/native/redux/persist.js
+++ b/native/redux/persist.js
@@ -904,7 +904,6 @@
},
[57]: async (state: any) => {
const {
- // eslint-disable-next-line no-unused-vars
connection,
keyserverStore: { keyserverInfos },
...rest
@@ -1023,7 +1022,6 @@
// `JSON.stringify(...)` and written to disk. We specify the keys for which
// this transformation should be executed in the `whitelist` property of the
// `config` object that's passed to `createTransform(...)`.
-// eslint-disable-next-line no-unused-vars
type PersistedMessageStore = {
+local: { +[id: string]: LocalMessageInfo },
+currentAsOf: { +[keyserverID: string]: number },
diff --git a/native/roles/change-roles-screen.react.js b/native/roles/change-roles-screen.react.js
--- a/native/roles/change-roles-screen.react.js
+++ b/native/roles/change-roles-screen.react.js
@@ -176,7 +176,6 @@
React.useEffect(() => {
navigation.setOptions({
- // eslint-disable-next-line react/display-name
headerRight: () => {
if (changeRolesLoadingStatus === 'loading') {
return (
diff --git a/native/roles/create-roles-screen.react.js b/native/roles/create-roles-screen.react.js
--- a/native/roles/create-roles-screen.react.js
+++ b/native/roles/create-roles-screen.react.js
@@ -161,7 +161,6 @@
React.useEffect(
() =>
props.navigation.setOptions({
- // eslint-disable-next-line react/display-name
headerRight: () => {
if (createRolesLoadingStatus === 'loading') {
return (
diff --git a/native/roles/roles-navigator.react.js b/native/roles/roles-navigator.react.js
--- a/native/roles/roles-navigator.react.js
+++ b/native/roles/roles-navigator.react.js
@@ -34,7 +34,6 @@
const communityRolesScreenOptions = {
headerTitle: 'Create role',
- // eslint-disable-next-line react/display-name
headerLeft: (headerLeftProps: StackHeaderLeftButtonProps) => (
<CommunityRolesHeaderLeftButton {...headerLeftProps} />
),
diff --git a/native/tooltip/tooltip.react.js b/native/tooltip/tooltip.react.js
--- a/native/tooltip/tooltip.react.js
+++ b/native/tooltip/tooltip.react.js
@@ -44,9 +44,7 @@
type ReanimatedTransform,
} from '../types/styles.js';
-/* eslint-disable import/no-named-as-default-member */
const { Value, Node, Extrapolate, add, multiply, interpolateNode } = Animated;
-/* eslint-enable import/no-named-as-default-member */
const unboundStyles = {
backdrop: {
diff --git a/native/utils/animation-utils.js b/native/utils/animation-utils.js
--- a/native/utils/animation-utils.js
+++ b/native/utils/animation-utils.js
@@ -9,7 +9,6 @@
type TimingConfig,
} from 'react-native-reanimated';
-/* eslint-disable import/no-named-as-default-member */
const {
Clock,
Node,
@@ -35,7 +34,6 @@
spring,
SpringUtils,
} = Animated;
-/* eslint-enable import/no-named-as-default-member */
function clamp(
value: Node,
diff --git a/web/chat/robotext-message.react.js b/web/chat/robotext-message.react.js
--- a/web/chat/robotext-message.react.js
+++ b/web/chat/robotext-message.react.js
@@ -63,17 +63,13 @@
);
const textParts = React.useMemo(() => {
return entityTextToReact(robotextWithENSNames, threadID, {
- // eslint-disable-next-line react/display-name
renderText: ({ text }) => (
<Markdown rules={linkRules(false)}>{text}</Markdown>
),
- // eslint-disable-next-line react/display-name
renderThread: ({ id, name }) => <ThreadEntity id={id} name={name} />,
- // eslint-disable-next-line react/display-name
renderUser: ({ userID, usernameText }) => (
<UserEntity userID={userID} usernameText={usernameText} />
),
- // eslint-disable-next-line react/display-name
renderColor: ({ hex }) => <ColorEntity color={hex} />,
});
}, [robotextWithENSNames, threadID]);
diff --git a/web/markdown/rules.react.js b/web/markdown/rules.react.js
--- a/web/markdown/rules.react.js
+++ b/web/markdown/rules.react.js
@@ -27,7 +27,6 @@
link: {
...SimpleMarkdown.defaultRules.link,
match: () => null,
- // eslint-disable-next-line react/display-name
react: (
node: SharedMarkdown.SingleASTNode,
output: SharedMarkdown.Output<SharedMarkdown.ReactElement>,
@@ -47,7 +46,6 @@
paragraph: {
...SimpleMarkdown.defaultRules.paragraph,
match: SimpleMarkdown.blockRegex(SharedMarkdown.paragraphRegex),
- // eslint-disable-next-line react/display-name
react: (
node: SharedMarkdown.SingleASTNode,
output: SharedMarkdown.Output<SharedMarkdown.ReactElement>,
@@ -99,7 +97,6 @@
content: SimpleMarkdown.parseInline(parse, content, state),
};
},
- // eslint-disable-next-line react/display-name
react: (
node: SharedMarkdown.SingleASTNode,
output: SharedMarkdown.Output<SharedMarkdown.ReactElement>,
@@ -195,7 +192,6 @@
match: SharedMarkdown.matchUserMentions(membersMap),
parse: (capture: SharedMarkdown.Capture) =>
SharedMarkdown.parseUserMentions(membersMap, capture),
- // eslint-disable-next-line react/display-name
react: (
node: SharedMarkdown.SingleASTNode,
output: SharedMarkdown.Output<SharedMarkdown.ReactElement>,
@@ -213,7 +209,6 @@
match: SimpleMarkdown.inlineRegex(chatMentionRegex),
parse: (capture: SharedMarkdown.Capture) =>
SharedMarkdown.parseChatMention(chatMentionCandidates, capture),
- // eslint-disable-next-line react/display-name
react: (
node: SharedMarkdown.SingleASTNode,
output: SharedMarkdown.Output<SharedMarkdown.ReactElement>,
diff --git a/web/router-history.js b/web/router-history.js
--- a/web/router-history.js
+++ b/web/router-history.js
@@ -11,7 +11,6 @@
type LocationType = LocationShape;
type HistoryObject = HistoryModule.History<LocationType> & RouterHistory;
-// eslint-disable-next-line no-undef
const history: ?HistoryObject = process.env.BROWSER
? (createBrowserHistory({ basename: baseURL }): any)
: null;
diff --git a/web/webpack.config.cjs b/web/webpack.config.cjs
--- a/web/webpack.config.cjs
+++ b/web/webpack.config.cjs
@@ -13,7 +13,6 @@
async function getConfig(configName) {
const { getCommConfig } = await import(
- // eslint-disable-next-line monorepo/no-relative-import
'../keyserver/dist/lib/utils/comm-config.js'
);
return await getCommConfig(configName);
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Tue, Dec 3, 12:08 PM (21 h, 25 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
2611626
Default Alt Text
D10542.diff (30 KB)
Attached To
Mode
D10542: [RN72][skip-ci] Automatic deletion of all unused ESLint disable directives
Attached
Detach File
Event Timeline
Log In to Comment