Skip to content

Commit 5d04f1d

Browse files
author
Kirill Kharitonov
committed
fix: lint errors
1 parent 9338205 commit 5d04f1d

File tree

21 files changed

+58
-62
lines changed

21 files changed

+58
-62
lines changed

.github/workflows/ci.yml

Lines changed: 30 additions & 29 deletions
Original file line numberDiff line numberDiff line change
@@ -11,37 +11,38 @@ jobs:
1111
name: Verify Files
1212
runs-on: ubuntu-latest
1313
steps:
14-
- name: Checkout
15-
uses: actions/checkout@v4
16-
with:
17-
fetch-depth: 0
18-
- name: Setup Node
19-
uses: actions/setup-node@v4
20-
with:
21-
node-version: 20
22-
cache: npm
23-
- name: Install Packages
24-
run: npm ci
25-
- name: Lint Files
26-
run: npm run lint
27-
- name: Typecheck
28-
run: npm run typecheck
14+
- name: Checkout
15+
uses: actions/checkout@v4
16+
with:
17+
fetch-depth: 0
18+
- name: Setup Node
19+
uses: actions/setup-node@v4
20+
with:
21+
node-version: 20
22+
cache: npm
23+
- name: Install Packages
24+
run: npm ci
25+
- name: Lint Files
26+
run: npm run lint
27+
- name: Typecheck
28+
run: npm run typecheck
29+
- name: Check Packages
30+
run: npm run packages:check
2931

3032
tests:
3133
name: Tests
3234
runs-on: ubuntu-latest
3335
steps:
34-
- name: Checkout
35-
uses: actions/checkout@v4
36-
with:
37-
fetch-depth: 0
38-
- name: Setup Node
39-
uses: actions/setup-node@v4
40-
with:
41-
node-version: 20
42-
cache: npm
43-
- name: Install Packages
44-
run: npm ci
45-
- name: Unit Tests
46-
run: npm run test
47-
36+
- name: Checkout
37+
uses: actions/checkout@v4
38+
with:
39+
fetch-depth: 0
40+
- name: Setup Node
41+
uses: actions/setup-node@v4
42+
with:
43+
node-version: 20
44+
cache: npm
45+
- name: Install Packages
46+
run: npm ci
47+
- name: Unit Tests
48+
run: npm run test

.storybook/theme.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
import {create} from '@storybook/theming';
22

3-
export const CloudThemeLight = create({
3+
const CloudThemeLight = create({
44
base: 'light',
55

66
colorPrimary: '#027bf3',
@@ -31,7 +31,7 @@ export const CloudThemeLight = create({
3131
<div style="font-size: 14px;color: #7d7d7d;font-weight: 400;">Navigation</div>`,
3232
});
3333

34-
export const CloudThemeDark = create({
34+
const CloudThemeDark = create({
3535
base: 'dark',
3636
});
3737

playwright/core/types.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ interface CaptureScreenshotParams extends PageScreenshotOptions {
3636
type JsonPrimitive = string | number | boolean | null;
3737
type JsonValue = JsonPrimitive | JsonObject | JsonArray;
3838
type JsonArray = JsonValue[];
39-
export type JsonObject = {[Key in string]?: JsonValue};
39+
type JsonObject = {[Key in string]?: JsonValue};
4040

4141
export type Fixtures = {
4242
mount: MountFixture;
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
export {AllPagesPanel} from './AllPagesPanel';
2-
export {getAllPagesMenuItem, ALL_PAGES_ID} from './constants';
2+
export {getAllPagesMenuItem} from './constants';
33
export {useVisibleMenuItems} from './useVisibleMenuItems';

src/components/AsideHeader/AsideHeaderContext.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ export interface AsideHeaderInnerContextType extends AsideHeaderInnerProps {
1515
) => void;
1616
}
1717

18-
export const AsideHeaderInnerContext = React.createContext<AsideHeaderInnerContextType | undefined>(
18+
const AsideHeaderInnerContext = React.createContext<AsideHeaderInnerContextType | undefined>(
1919
undefined,
2020
);
2121
AsideHeaderInnerContext.displayName = 'AsideHeaderInnerContext';
@@ -36,7 +36,7 @@ export interface AsideHeaderContextType {
3636
size: number;
3737
}
3838

39-
export const AsideHeaderContext = React.createContext<AsideHeaderContextType | undefined>({
39+
const AsideHeaderContext = React.createContext<AsideHeaderContextType | undefined>({
4040
compact: false,
4141
size: 0,
4242
});

src/components/AsideHeader/components/CollapseButton/CollapseButton.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ import './CollapseButton.scss';
1212

1313
const b = block('collapse-button');
1414

15-
export interface CollapseButtonProps {
15+
interface CollapseButtonProps {
1616
className?: string;
1717
}
1818

src/components/AsideHeader/components/PageLayout/AsideFallback.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ import {b} from '../../utils';
88

99
import headerDividerCollapsedIcon from '../../../../../assets/icons/divider-collapsed.svg';
1010

11-
export interface Props extends QAProps {
11+
interface Props extends QAProps {
1212
headerDecoration?: boolean;
1313
subheaderItemsCount?: number;
1414
}

src/components/AsideHeader/types.tsx

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -12,15 +12,15 @@ export interface LayoutProps {
1212
topAlert?: TopAlertProps;
1313
}
1414

15-
export interface EditMenuProps {
15+
interface EditMenuProps {
1616
onOpenEditMode?: () => void;
1717
onToggleMenuItem?: (changedItem: MenuItem) => void;
1818
onResetSettingsToDefault?: () => void;
1919
enableSorting?: boolean;
2020
onChangeItemsOrder?: (changedItem: MenuItem, oldIndex: number, newIndex: number) => void;
2121
}
2222

23-
export interface AsideHeaderGeneralProps extends QAProps {
23+
interface AsideHeaderGeneralProps extends QAProps {
2424
logo?: LogoProps;
2525
multipleTooltip?: boolean;
2626
className?: string;
@@ -52,7 +52,7 @@ export interface AsideHeaderGeneralProps extends QAProps {
5252
openModalSubscriber?: (subscriber: OpenModalSubscriber) => void;
5353
}
5454

55-
export interface AsideHeaderDefaultProps {
55+
interface AsideHeaderDefaultProps {
5656
panelItems?: DrawerItemProps[];
5757
subheaderItems?: SubheaderMenuItem[];
5858
menuItems?: MenuItem[];

src/components/CompositeBar/CompositeBar.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ type CompositeBarItems =
3131
| {type: 'menu'; items: MenuItem[]}
3232
| {type: 'subheader'; items: SubheaderMenuItem[]};
3333

34-
export type CompositeBarProps = CompositeBarItems & {
34+
type CompositeBarProps = CompositeBarItems & {
3535
onItemClick?: (
3636
item: MenuItem,
3737
collapsed: boolean,

src/components/CompositeBar/Item/Item.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -78,8 +78,8 @@ function renderItemTitle(item: MenuItem) {
7878
return titleNode;
7979
}
8080

81-
export const defaultPopupPlacement: PopupPlacement = ['right-end'];
82-
export const defaultPopupOffset: NonNullable<PopupProps['offset']> = {mainAxis: 8, crossAxis: -20};
81+
const defaultPopupPlacement: PopupPlacement = ['right-end'];
82+
const defaultPopupOffset: NonNullable<PopupProps['offset']> = {mainAxis: 8, crossAxis: -20};
8383

8484
export const Item: React.FC<ItemInnerProps> = (props) => {
8585
const {

0 commit comments

Comments
 (0)