Skip to content

Commit

Permalink
fix: linting errors
Browse files Browse the repository at this point in the history
Signed-off-by: Adam Setch <adam.setch@outlook.com>
  • Loading branch information
setchy committed Sep 14, 2024
1 parent dfb8a68 commit 4f6ea71
Show file tree
Hide file tree
Showing 17 changed files with 37 additions and 48 deletions.
17 changes: 3 additions & 14 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -50,12 +50,7 @@
"build": {
"appId": "com.electron.atlasify",
"productName": "Atlasify",
"files": [
"build/**/*",
"assets/**/*",
"src/electron/*",
"LICENSE"
],
"files": ["build/**/*", "assets/**/*", "src/electron/*", "LICENSE"],
"mac": {
"category": "public.app-category.developer-tools",
"icon": "assets/images/app-icon.icns",
Expand All @@ -64,9 +59,7 @@
"gatekeeperAssess": false,
"entitlements": "./entitlements/entitlements.mac.plist",
"entitlementsInherit": "./entitlements/entitlements.mac.plist",
"publish": [
"github"
],
"publish": ["github"],
"extendInfo": {
"NSBluetoothAlwaysUsageDescription": null,
"NSBluetoothPeripheralUsageDescription": null,
Expand All @@ -86,11 +79,7 @@
"oneClick": false
},
"linux": {
"target": [
"AppImage",
"deb",
"rpm"
],
"target": ["AppImage", "deb", "rpm"],
"category": "Development",
"maintainer": "Adam Setch"
},
Expand Down
8 changes: 4 additions & 4 deletions src/components/AccountNotifications.tsx
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
import { type FC, type MouseEvent, useContext, useMemo, useState } from 'react';

import Toggle from '@atlaskit/toggle';
import Tooltip from '@atlaskit/tooltip';
import Avatar from '@atlaskit/avatar';
import { IconButton } from '@atlaskit/button/new';
import ChevronDownIcon from '@atlaskit/icon/glyph/chevron-down';
import ChevronLeftIcon from '@atlaskit/icon/glyph/chevron-left';
import ChevronUpIcon from '@atlaskit/icon/glyph/chevron-up';
import { IconButton } from '@atlaskit/button/new';
import Avatar from '@atlaskit/avatar';
import Toggle from '@atlaskit/toggle';
import Tooltip from '@atlaskit/tooltip';

import { AppContext } from '../context/App';
import {
Expand Down
4 changes: 2 additions & 2 deletions src/components/Header.tsx
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
import { type FC, useContext } from 'react';
import { useNavigate } from 'react-router-dom';

import { IconButton } from '@atlaskit/button/new';
import Heading from '@atlaskit/heading';
import ArrowLeftIcon from '@atlaskit/icon/glyph/arrow-left';
import Tooltip from '@atlaskit/tooltip';
import { IconButton } from '@atlaskit/button/new';
import { Inline } from '@atlaskit/primitives';
import Tooltip from '@atlaskit/tooltip';

import { AppContext } from '../context/App';

Expand Down
2 changes: 1 addition & 1 deletion src/components/NotificationRow.tsx
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
import { type FC, useCallback, useContext, useState } from 'react';

import Avatar from '@atlaskit/avatar';
import Tooltip from '@atlaskit/tooltip';
import { IconButton } from '@atlaskit/button/new';
import HipchatMediaAttachmentCountIcon from '@atlaskit/icon/glyph/hipchat/media-attachment-count';
import Tooltip from '@atlaskit/tooltip';

import { AppContext } from '../context/App';
import { type AtlasifyNotification, Opacity } from '../types';
Expand Down
2 changes: 1 addition & 1 deletion src/components/ProductNotifications.test.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@ import { act, fireEvent, render, screen } from '@testing-library/react';
import { mockAtlassianCloudAccount } from '../__mocks__/state-mocks';
import { AppContext } from '../context/App';
import { mockAtlasifyNotification } from '../utils/api/__mocks__/response-mocks';
import type { Product } from '../utils/api/types';
import { ProductNotifications } from './ProductNotifications';
import { Product } from '../utils/api/types';

jest.mock('./NotificationRow', () => ({
NotificationRow: () => <div>NotificationRow</div>,
Expand Down
2 changes: 1 addition & 1 deletion src/components/ProductNotifications.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -7,10 +7,10 @@ import HipchatMediaAttachmentCountIcon from '@atlaskit/icon/glyph/hipchat/media-

import { AppContext } from '../context/App';
import { type AtlasifyNotification, Opacity } from '../types';
import { markNotificationsAsRead } from '../utils/api/client';
import { cn } from '../utils/cn';
import { HoverGroup } from './HoverGroup';
import { NotificationRow } from './NotificationRow';
import { markNotificationsAsRead } from '../utils/api/client';

interface IProductNotifications {
productNotifications: AtlasifyNotification[];
Expand Down
14 changes: 7 additions & 7 deletions src/components/Sidebar.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -2,16 +2,16 @@ import { type FC, useContext, useMemo } from 'react';
import { useLocation, useNavigate } from 'react-router-dom';

import Button, { IconButton } from '@atlaskit/button/new';
import IssuesIcon from '@atlaskit/icon/glyph/issues';
import BitbucketPullrequestsIcon from '@atlaskit/icon/glyph/bitbucket/pullrequests';
import { Stack, Text } from '@atlaskit/primitives';
import Tooltip from '@atlaskit/tooltip';
import { AtlasIcon } from '@atlaskit/logo';
import NotificationIcon from '@atlaskit/icon/glyph/notification';
import SettingsIcon from '@atlaskit/icon/glyph/settings';
import CrossCircleIcon from '@atlaskit/icon/glyph/cross-circle';
import FilterIcon from '@atlaskit/icon/glyph/filter';
import IssuesIcon from '@atlaskit/icon/glyph/issues';
import NotificationIcon from '@atlaskit/icon/glyph/notification';
import RefreshIcon from '@atlaskit/icon/glyph/refresh';
import CrossCircleIcon from '@atlaskit/icon/glyph/cross-circle';
import SettingsIcon from '@atlaskit/icon/glyph/settings';
import { AtlasIcon } from '@atlaskit/logo';
import { Stack, Text } from '@atlaskit/primitives';
import Tooltip from '@atlaskit/tooltip';

import { AppContext } from '../context/App';
import { quitApp } from '../utils/comms';
Expand Down
2 changes: 1 addition & 1 deletion src/components/settings/AppearanceSettings.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -9,11 +9,11 @@ import { Inline, Stack, Text } from '@atlaskit/primitives';
import { RadioGroup } from '@atlaskit/radio';
import type { OptionsPropType } from '@atlaskit/radio/types';

import Heading from '@atlaskit/heading';
import { AppContext } from '../../context/App';
import { Theme } from '../../types';
import { setTheme } from '../../utils/theme';
import { zoomLevelToPercentage, zoomPercentageToLevel } from '../../utils/zoom';
import Heading from '@atlaskit/heading';

let timeout: NodeJS.Timeout;
const DELAY = 200;
Expand Down
4 changes: 2 additions & 2 deletions src/components/settings/NotificationSettings.tsx
Original file line number Diff line number Diff line change
@@ -1,14 +1,14 @@
import { type FC, useContext } from 'react';

import { Checkbox } from '@atlaskit/checkbox';
import Heading from '@atlaskit/heading';
import { Inline, Stack, Text } from '@atlaskit/primitives';
import { RadioGroup } from '@atlaskit/radio';
import type { OptionsPropType } from '@atlaskit/radio/types';
import Heading from '@atlaskit/heading';

import InlineMessage from '@atlaskit/inline-message';
import { AppContext } from '../../context/App';
import { GroupBy } from '../../types';
import InlineMessage from '@atlaskit/inline-message';

export const NotificationSettings: FC = () => {
const { settings, updateSetting } = useContext(AppContext);
Expand Down
6 changes: 3 additions & 3 deletions src/components/settings/SettingsFooter.tsx
Original file line number Diff line number Diff line change
@@ -1,14 +1,14 @@
import { type FC, useEffect, useState } from 'react';
import { useNavigate } from 'react-router-dom';

import Button, { IconButton } from '@atlaskit/button/new';
import CrossCircleIcon from '@atlaskit/icon/glyph/cross-circle';
import PeopleGroupIcon from '@atlaskit/icon/glyph/people-group';
import Button, { IconButton } from '@atlaskit/button/new';

import { Box, Inline, Stack } from '@atlaskit/primitives';
import Tooltip from '@atlaskit/tooltip';
import { getAppVersion, quitApp } from '../../utils/comms';
import { openAtlasifyReleaseNotes } from '../../utils/links';
import Tooltip from '@atlaskit/tooltip';
import { Box, Inline, Stack } from '@atlaskit/primitives';

export const SettingsFooter: FC = () => {
const [appVersion, setAppVersion] = useState<string | null>(null);
Expand Down
4 changes: 2 additions & 2 deletions src/components/settings/SystemSettings.tsx
Original file line number Diff line number Diff line change
@@ -1,16 +1,16 @@
import { type FC, useContext } from 'react';

import { Checkbox } from '@atlaskit/checkbox';
import Heading from '@atlaskit/heading';
import { Inline, Stack, Text } from '@atlaskit/primitives';
import { RadioGroup } from '@atlaskit/radio';
import type { OptionsPropType } from '@atlaskit/radio/types';
import Heading from '@atlaskit/heading';

import InlineMessage from '@atlaskit/inline-message';
import { AppContext } from '../../context/App';
import { OpenPreference } from '../../types';
import { Constants } from '../../utils/constants';
import { isLinux, isMacOS } from '../../utils/platform';
import InlineMessage from '@atlaskit/inline-message';

export const SystemSettings: FC = () => {
const { settings, updateSetting } = useContext(AppContext);
Expand Down
4 changes: 2 additions & 2 deletions src/routes/Accounts.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -2,16 +2,16 @@ import { type FC, useCallback, useContext } from 'react';
import { useNavigate } from 'react-router-dom';

import Avatar from '@atlaskit/avatar';
import { IconButton } from '@atlaskit/button/new';
import InviteTeamIcon from '@atlaskit/icon/glyph/invite-team';
import LockIcon from '@atlaskit/icon/glyph/lock';
import PersonIcon from '@atlaskit/icon/glyph/person';
import RefreshIcon from '@atlaskit/icon/glyph/refresh';
import SignOutIcon from '@atlaskit/icon/glyph/sign-out';
import StarIcon from '@atlaskit/icon/glyph/star';
import StarFilledIcon from '@atlaskit/icon/glyph/star-filled';
import Tooltip from '@atlaskit/tooltip';
import { IconButton } from '@atlaskit/button/new';
import { Box, Flex, Inline } from '@atlaskit/primitives';
import Tooltip from '@atlaskit/tooltip';

import { Header } from '../components/Header';
import { AppContext } from '../context/App';
Expand Down
6 changes: 3 additions & 3 deletions src/routes/Filters.tsx
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
import { type FC, useContext } from 'react';

import Checkbox from '@atlaskit/checkbox';
import { Box, Flex, Stack } from '@atlaskit/primitives';
import Button from '@atlaskit/button/new';
import Checkbox from '@atlaskit/checkbox';
import Heading from '@atlaskit/heading';
import { Box, Flex, Stack } from '@atlaskit/primitives';

import { Header } from '../components/Header';
// import { Legend } from '../components/settings/Legend';
Expand All @@ -15,8 +15,8 @@ import {
getCategoryDetails,
getReadStateDetails,
} from '../utils/filters';
import { PRODUCTS, getProductDetails } from '../utils/product';
import { formatProperCase } from '../utils/helpers';
import { PRODUCTS, getProductDetails } from '../utils/product';

export const FiltersRoute: FC = () => {
const { settings, clearFilters, updateSetting } = useContext(AppContext);
Expand Down
2 changes: 1 addition & 1 deletion src/routes/Login.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@ import { type FC, useContext, useEffect } from 'react';
import { useNavigate } from 'react-router-dom';

import Button from '@atlaskit/button/new';
import Tooltip from '@atlaskit/tooltip';
import NotificationAllIcon from '@atlaskit/icon/glyph/notification-all';
import {
AtlassianIcon,
Expand All @@ -13,6 +12,7 @@ import {
JiraProductDiscoveryIcon,
JiraServiceManagementIcon,
} from '@atlaskit/logo';
import Tooltip from '@atlaskit/tooltip';

import { AppContext } from '../context/App';
import { showWindow } from '../utils/comms';
Expand Down
4 changes: 2 additions & 2 deletions src/routes/LoginWithAPIToken.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,10 @@ import log from 'electron-log';
import { type FC, useCallback, useContext, useState } from 'react';

import Button from '@atlaskit/button/new';
import SignInIcon from '@atlaskit/icon/glyph/sign-in';
import LockIcon from '@atlaskit/icon/glyph/lock';
import ShortcutIcon from '@atlaskit/icon/glyph/shortcut';
import SignInIcon from '@atlaskit/icon/glyph/sign-in';
import Tooltip from '@atlaskit/tooltip';
import LockIcon from '@atlaskit/icon/glyph/lock';

import { Form, type FormRenderProps } from 'react-final-form';
import { useNavigate } from 'react-router-dom';
Expand Down
2 changes: 1 addition & 1 deletion src/utils/api/request.test.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import axios from 'axios';
import { mockAtlassianCloudAccount } from '../../__mocks__/state-mocks';
import type { Link } from '../../types';
import { apiRequestAuth } from './request';
import { mockAtlassianCloudAccount } from '../../__mocks__/state-mocks';

jest.mock('axios');

Expand Down
2 changes: 1 addition & 1 deletion src/utils/notifications.ts
Original file line number Diff line number Diff line change
Expand Up @@ -11,10 +11,10 @@ import { determineFailureType } from './api/errors';
import type { AtlassianNotification, Category, ReadState } from './api/types';
import { getAccountUUID } from './auth/utils';
import { hideWindow, showWindow, updateTrayIcon } from './comms';
import { READ_STATES } from './filters';
import { openNotification } from './links';
import { isWindows } from './platform';
import { getAtlassianProduct } from './product';
import { READ_STATES } from './filters';

export function setTrayIconColor(notifications: AccountNotifications[]) {
const allNotificationsCount = getNotificationCount(notifications);
Expand Down

0 comments on commit 4f6ea71

Please sign in to comment.