Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ESLint no-default-exports 6 - View.tsx #2120

Merged
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
29 changes: 1 addition & 28 deletions .eslintrc.js
Original file line number Diff line number Diff line change
Expand Up @@ -249,34 +249,7 @@ module.exports = {
// './packages/desktop-client/src/components/accounts/**/*',
// './packages/desktop-client/src/components/autocomplete/**/*',
// './packages/desktop-client/src/components/budget/**/*',
'./packages/desktop-client/src/components/common/AlignedText.tsx',
'./packages/desktop-client/src/components/common/AnchorLink.tsx',
'./packages/desktop-client/src/components/common/Block.tsx',
'./packages/desktop-client/src/components/common/Button.tsx',
'./packages/desktop-client/src/components/common/ButtonLink.tsx',
'./packages/desktop-client/src/components/common/Card.tsx',
'./packages/desktop-client/src/components/common/ExternalLink.tsx',
'./packages/desktop-client/src/components/common/FormError.tsx',
'./packages/desktop-client/src/components/common/HoverTarget.tsx',
'./packages/desktop-client/src/components/common/InitialFocus.tsx',
'./packages/desktop-client/src/components/common/InlineField.tsx',
'./packages/desktop-client/src/components/common/Input.tsx',
'./packages/desktop-client/src/components/common/InputWithContent.tsx',
'./packages/desktop-client/src/components/common/Label.tsx',
'./packages/desktop-client/src/components/common/Link.tsx',
'./packages/desktop-client/src/components/common/LinkButton.tsx',
'./packages/desktop-client/src/components/common/Menu.tsx',
'./packages/desktop-client/src/components/common/MenuTooltip.tsx',
'./packages/desktop-client/src/components/common/MenuButton.tsx',
'./packages/desktop-client/src/components/common/Modal.tsx',
'./packages/desktop-client/src/components/common/Paragraph.tsx',
'./packages/desktop-client/src/components/common/Search.tsx',
'./packages/desktop-client/src/components/common/Select.tsx',
'./packages/desktop-client/src/components/common/Stack.tsx',
'./packages/desktop-client/src/components/common/Text.tsx',
'./packages/desktop-client/src/components/common/TextOneLine.tsx',
// './packages/desktop-client/src/components/common/View.tsx',
// './packages/desktop-client/src/components/common/**/*',
'./packages/desktop-client/src/components/common/**/*',
// './packages/desktop-client/src/components/filters/**/*',
// './packages/desktop-client/src/components/gocardless/**/*',
// './packages/desktop-client/src/components/manager/**/*',
Expand Down
2 changes: 1 addition & 1 deletion packages/desktop-client/src/components/AnimatedRefresh.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import { keyframes } from 'glamor';
import Refresh from '../icons/v1/Refresh';
import { type CSSProperties } from '../style';

import View from './common/View';
import { View } from './common/View';

const spin = keyframes({
'0%': { transform: 'rotateZ(0deg)' },
Expand Down
2 changes: 1 addition & 1 deletion packages/desktop-client/src/components/App.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ import { ResponsiveProvider } from '../ResponsiveProvider';
import { styles, hasHiddenScrollbars, ThemeStyle } from '../style';

import { AppBackground } from './AppBackground';
import View from './common/View';
import { View } from './common/View';
import { DevelopmentTopBar } from './DevelopmentTopBar';
import { FatalError } from './FatalError';
import { FinancesApp } from './FinancesApp';
Expand Down
2 changes: 1 addition & 1 deletion packages/desktop-client/src/components/AppBackground.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ import { theme } from '../style';

import { Background } from './Background';
import { Block } from './common/Block';
import View from './common/View';
import { View } from './common/View';

type AppBackgroundProps = {
initializing?: boolean;
Expand Down
2 changes: 1 addition & 1 deletion packages/desktop-client/src/components/BankSyncStatus.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ import { theme, styles } from '../style';

import { AnimatedRefresh } from './AnimatedRefresh';
import { Text } from './common/Text';
import View from './common/View';
import { View } from './common/View';

export function BankSyncStatus() {
const accountsSyncing = useSelector(state => state.account.accountsSyncing);
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import { theme } from '../style';

import { ExternalLink } from './common/ExternalLink';
import View from './common/View';
import { View } from './common/View';

export function DevelopmentTopBar() {
return (
Expand Down
2 changes: 1 addition & 1 deletion packages/desktop-client/src/components/FatalError.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ import { Modal } from './common/Modal';
import { Paragraph } from './common/Paragraph';
import { Stack } from './common/Stack';
import { Text } from './common/Text';
import View from './common/View';
import { View } from './common/View';
import { Checkbox } from './forms';

type AppError = Error & {
Expand Down
2 changes: 1 addition & 1 deletion packages/desktop-client/src/components/FinancesApp.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ import { getIsOutdated, getLatestVersion } from '../util/versions';

import { BankSyncStatus } from './BankSyncStatus';
import { BudgetMonthCountProvider } from './budget/BudgetMonthCountContext';
import View from './common/View';
import { View } from './common/View';
import { GlobalKeys } from './GlobalKeys';
import { ManageRulesPage } from './ManageRulesPage';
import MobileNavTabs from './mobile/MobileNavTabs';
Expand Down
2 changes: 1 addition & 1 deletion packages/desktop-client/src/components/FixedSizeList.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ import memoizeOne from 'memoize-one';
import useResizeObserver from '../hooks/useResizeObserver';
import { type CSSProperties } from '../style';

import View from './common/View';
import { View } from './common/View';

const IS_SCROLLING_DEBOUNCE_INTERVAL = 150;

Expand Down
2 changes: 1 addition & 1 deletion packages/desktop-client/src/components/LoggedInUser.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ import { theme, styles, type CSSProperties } from '../style';
import { Button } from './common/Button';
import { Menu } from './common/Menu';
import { Text } from './common/Text';
import View from './common/View';
import { View } from './common/View';
import { useServerURL } from './ServerContext';
import { Tooltip } from './tooltips';

Expand Down
2 changes: 1 addition & 1 deletion packages/desktop-client/src/components/ManageRules.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ import { ExternalLink } from './common/ExternalLink';
import { Search } from './common/Search';
import { Stack } from './common/Stack';
import { Text } from './common/Text';
import View from './common/View';
import { View } from './common/View';
import RulesHeader from './rules/RulesHeader';
import RulesList from './rules/RulesList';
import { SchedulesQuery } from './rules/SchedulesQuery';
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ import { theme, styles } from '../style';

import { Button } from './common/Button';
import { Text } from './common/Text';
import View from './common/View';
import { View } from './common/View';
import { Checkbox } from './forms';

const buttonStyle = { border: 0, fontSize: 15, padding: '10px 13px' };
Expand Down
2 changes: 1 addition & 1 deletion packages/desktop-client/src/components/NotesButton.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ import CustomNotesPaper from '../icons/v2/CustomNotesPaper';
import { type CSSProperties, theme } from '../style';

import { Button } from './common/Button';
import View from './common/View';
import { View } from './common/View';
import { Notes } from './Notes';
import { Tooltip, type TooltipPosition, useTooltip } from './tooltips';

Expand Down
2 changes: 1 addition & 1 deletion packages/desktop-client/src/components/Notifications.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ import { ExternalLink } from './common/ExternalLink';
import { LinkButton } from './common/LinkButton';
import { Stack } from './common/Stack';
import { Text } from './common/Text';
import View from './common/View';
import { View } from './common/View';

function compileMessage(
message: string,
Expand Down
2 changes: 1 addition & 1 deletion packages/desktop-client/src/components/Page.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import { useResponsive } from '../ResponsiveProvider';
import { theme, styles, type CSSProperties } from '../style';

import { Text } from './common/Text';
import View from './common/View';
import { View } from './common/View';

type PageHeaderProps = {
title: ReactNode;
Expand Down
2 changes: 1 addition & 1 deletion packages/desktop-client/src/components/PrivacyFilter.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ import usePrivacyMode from 'loot-core/src/client/privacy';

import { useResponsive } from '../ResponsiveProvider';

import View from './common/View';
import { View } from './common/View';

type ConditionalPrivacyFilterProps = {
children: ReactNode;
Expand Down
2 changes: 1 addition & 1 deletion packages/desktop-client/src/components/Titlebar.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ import { ExternalLink } from './common/ExternalLink';
import { Link } from './common/Link';
import { Paragraph } from './common/Paragraph';
import { Text } from './common/Text';
import View from './common/View';
import { View } from './common/View';
import { KeyHandlers } from './KeyHandlers';
import { LoggedInUser } from './LoggedInUser';
import { useServerURL } from './ServerContext';
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ import { theme } from '../style';
import { Button } from './common/Button';
import { LinkButton } from './common/LinkButton';
import { Text } from './common/Text';
import View from './common/View';
import { View } from './common/View';

function closeNotification(setAppState) {
// Set a flag to never show an update notification again for this session
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ import { SelectedProviderWithItems } from '../../hooks/useSelected';
import { styles, theme } from '../../style';
import { Button } from '../common/Button';
import { Text } from '../common/Text';
import View from '../common/View';
import { View } from '../common/View';
import TransactionList from '../transactions/TransactionList';
import {
SplitsExpandedProvider,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ import ExclamationOutline from '../../icons/v1/ExclamationOutline';
import { theme } from '../../style';
import { Button } from '../common/Button';
import { ExternalLink } from '../common/ExternalLink';
import View from '../common/View';
import { View } from '../common/View';
import { Tooltip } from '../tooltips';

function getErrorMessage(type, code) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ import ArrowButtonRight1 from '../../icons/v2/ArrowButtonRight1';
import { theme } from '../../style';
import { Button } from '../common/Button';
import { Text } from '../common/Text';
import View from '../common/View';
import { View } from '../common/View';
import { PrivacyFilter } from '../PrivacyFilter';
import CellValue from '../spreadsheet/CellValue';
import useFormat from '../spreadsheet/useFormat';
Expand Down
2 changes: 1 addition & 1 deletion packages/desktop-client/src/components/accounts/Header.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ import { MenuButton } from '../common/MenuButton';
import { MenuTooltip } from '../common/MenuTooltip';
import { Search } from '../common/Search';
import { Stack } from '../common/Stack';
import View from '../common/View';
import { View } from '../common/View';
import { FilterButton } from '../filters/FiltersMenu';
import { FiltersStack } from '../filters/SavedFilters';
import { KeyHandlers } from '../KeyHandlers';
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ import { theme } from '../../style';
import { ButtonLink } from '../common/ButtonLink';
import { InputWithContent } from '../common/InputWithContent';
import { Label } from '../common/Label';
import View from '../common/View';
import { View } from '../common/View';
import { MobileBackButton } from '../MobileBackButton';
import { Page } from '../Page';
import PullToRefresh from '../responsive/PullToRefresh';
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ import { theme, styles } from '../../style';
import { Button } from '../common/Button';
import { Text } from '../common/Text';
import { TextOneLine } from '../common/TextOneLine';
import View from '../common/View';
import { View } from '../common/View';
import { Page } from '../Page';
import PullToRefresh from '../responsive/PullToRefresh';
import CellValue from '../spreadsheet/CellValue';
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ import { Button } from '../common/Button';
import { InitialFocus } from '../common/InitialFocus';
import { Input } from '../common/Input';
import { Text } from '../common/Text';
import View from '../common/View';
import { View } from '../common/View';
import useFormat from '../spreadsheet/useFormat';
import useSheetValue from '../spreadsheet/useSheetValue';
import { Tooltip } from '../tooltips';
Expand Down
2 changes: 1 addition & 1 deletion packages/desktop-client/src/components/alerts.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import InformationOutline from '../icons/v1/InformationOutline';
import { styles, theme, type CSSProperties } from '../style';

import { Text } from './common/Text';
import View from './common/View';
import { View } from './common/View';

type AlertProps = {
icon?: ComponentType<{ width?: number; style?: CSSProperties }>;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ import { type AccountEntity } from 'loot-core/src/types/models';

import { useResponsive } from '../../ResponsiveProvider';
import { type CSSProperties, theme } from '../../style';
import View from '../common/View';
import { View } from '../common/View';

import Autocomplete from './Autocomplete';

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ import Remove from '../../icons/v2/Remove';
import { theme, type CSSProperties } from '../../style';
import { Button } from '../common/Button';
import { Input } from '../common/Input';
import View from '../common/View';
import { View } from '../common/View';
import { Tooltip } from '../tooltips';

type Item = {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ import Split from '../../icons/v0/Split';
import { useResponsive } from '../../ResponsiveProvider';
import { type CSSProperties, theme } from '../../style';
import { Text } from '../common/Text';
import View from '../common/View';
import { View } from '../common/View';

import Autocomplete, { defaultFilterSuggestion } from './Autocomplete';

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ import Add from '../../icons/v1/Add';
import { useResponsive } from '../../ResponsiveProvider';
import { type CSSProperties, theme } from '../../style';
import { Button } from '../common/Button';
import View from '../common/View';
import { View } from '../common/View';

import Autocomplete, {
defaultFilterSuggestion,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import { useFilters } from 'loot-core/src/client/data-hooks/filters';
import { type TransactionFilterEntity } from 'loot-core/src/types/models';

import { theme } from '../../style';
import View from '../common/View';
import { View } from '../common/View';

import Autocomplete from './Autocomplete';

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ import React, { type ComponentProps } from 'react';
import useFeatureFlag from '../../hooks/useFeatureFlag';
import ArrowThinRight from '../../icons/v1/ArrowThinRight';
import { type CSSProperties } from '../../style';
import View from '../common/View';
import { View } from '../common/View';
import CellValue from '../spreadsheet/CellValue';
import useSheetValue from '../spreadsheet/useSheetValue';

Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import React, { memo, useState, useMemo } from 'react';

import { theme, styles } from '../../style';
import View from '../common/View';
import { View } from '../common/View';
import { DropHighlightPosContext } from '../sort';
import { Row } from '../table';

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import React, { type ComponentProps, memo } from 'react';

import * as monthUtils from 'loot-core/src/shared/months';

import View from '../common/View';
import { View } from '../common/View';

import { MonthPicker } from './MonthPicker';
import { getScrollbarWidth } from './util';
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ import { css } from 'glamor';
import { addMonths, subMonths } from 'loot-core/src/shared/months';

import useResizeObserver from '../../hooks/useResizeObserver';
import View from '../common/View';
import { View } from '../common/View';

import { MonthsContext } from './MonthsContext';
import type ReportBudgetSummary from './report/budgetsummary/BudgetSummary';
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ import React, { createRef, Component } from 'react';
import * as monthUtils from 'loot-core/src/shared/months';

import { theme, styles } from '../../style';
import View from '../common/View';
import { View } from '../common/View';
import { IntersectionBoundary } from '../tooltips';

import BudgetCategories from './BudgetCategories';
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import DotsHorizontalTriple from '../../icons/v1/DotsHorizontalTriple';
import { theme, styles } from '../../style';
import { Button } from '../common/Button';
import { Menu } from '../common/Menu';
import View from '../common/View';
import { View } from '../common/View';
import { Tooltip } from '../tooltips';

import RenderMonths from './RenderMonths';
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ import { useSelector } from 'react-redux';
import AutoSizer from 'react-virtualized-auto-sizer';

import { useActions } from '../../hooks/useActions';
import View from '../common/View';
import { View } from '../common/View';

import { useBudgetMonthCount } from './BudgetMonthCountContext';
import BudgetPageHeader from './BudgetPageHeader';
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ import React, { type ComponentProps } from 'react';
import { type CategoryEntity } from 'loot-core/src/types/models';

import { theme } from '../../style';
import View from '../common/View';
import { View } from '../common/View';
import {
useDraggable,
useDroppable,
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import React, { type ComponentProps } from 'react';

import { theme } from '../../style';
import View from '../common/View';
import { View } from '../common/View';
import {
useDraggable,
useDroppable,
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import React from 'react';

import { Button } from '../common/Button';
import View from '../common/View';
import { View } from '../common/View';

import RenderMonths from './RenderMonths';

Expand Down
Loading