Skip to content

Commit b48c50a

Browse files
committed
run lint
1 parent e6afe18 commit b48c50a

File tree

10 files changed

+9
-21
lines changed

10 files changed

+9
-21
lines changed

.husky/commit-msg

-7
This file was deleted.

.husky/pre-commit

-4
This file was deleted.

config/routes.ts

+1
Original file line numberDiff line numberDiff line change
@@ -51,6 +51,7 @@ export default [
5151
icon: 'table',
5252
path: '/list',
5353
component: './TableList',
54+
access: 'canAdmin',
5455
},
5556
{
5657
path: '/',

src/components/HeaderDropdown/index.tsx

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
1+
import { useEmotionCss } from '@ant-design/use-emotion-css';
12
import { Dropdown } from 'antd';
23
import type { DropDownProps } from 'antd/es/dropdown';
3-
import React from 'react';
4-
import { useEmotionCss } from '@ant-design/use-emotion-css';
54
import classNames from 'classnames';
5+
import React from 'react';
66

77
export type HeaderDropdownProps = {
88
overlayClassName?: string;

src/components/RightContent/AvatarDropdown.tsx

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
import { outLogin } from '@/services/ant-design-pro/login';
12
import { LogoutOutlined, SettingOutlined, UserOutlined } from '@ant-design/icons';
23
import { useEmotionCss } from '@ant-design/use-emotion-css';
34
import { history, useModel } from '@umijs/max';
@@ -7,7 +8,6 @@ import type { MenuInfo } from 'rc-menu/lib/interface';
78
import React, { useCallback } from 'react';
89
import { flushSync } from 'react-dom';
910
import HeaderDropdown from '../HeaderDropdown';
10-
import { outLogin } from '@/services/ant-design-pro/login';
1111

1212
export type GlobalHeaderRightProps = {
1313
menu?: boolean;

src/components/RightContent/index.tsx

-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
import { QuestionCircleOutlined } from '@ant-design/icons';
22
import { SelectLang as UmiSelectLang } from '@umijs/max';
3-
import React from 'react';
43

54
export type SiderTheme = 'light' | 'dark';
65

src/components/index.ts

+1-2
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
1-
21
import Footer from './Footer';
32
import { Question, SelectLang } from './RightContent';
43
import { AvatarDropdown, AvatarName } from './RightContent/AvatarDropdown';
54

6-
export { Footer, Question, SelectLang, AvatarDropdown, AvatarName };
5+
export { AvatarDropdown, AvatarName, Footer, Question, SelectLang };

src/global.tsx

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
import { useIntl } from '@umijs/max';
2-
import { Button,message,notification } from 'antd';
2+
import { Button, message, notification } from 'antd';
33
import * as dayjs from 'dayjs';
44
import defaultSettings from '../config/defaultSettings';
55
const { pwa } = defaultSettings;

src/pages/TableList/index.tsx

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
import { addRule, removeRule, rule, updateRule } from '@/services/ant-design-pro/rule';
12
import { PlusOutlined } from '@ant-design/icons';
23
import type { ActionType, ProColumns, ProDescriptionsItemProps } from '@ant-design/pro-components';
34
import {
@@ -14,7 +15,6 @@ import { Button, Drawer, Input, message } from 'antd';
1415
import React, { useRef, useState } from 'react';
1516
import type { FormValueType } from './components/UpdateForm';
1617
import UpdateForm from './components/UpdateForm';
17-
import { addRule, removeRule, rule, updateRule } from '@/services/ant-design-pro/rule';
1818

1919
/**
2020
* @en-US Add node

src/pages/User/Login/login.test.tsx

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
1-
import { render, fireEvent, act } from '@testing-library/react';
1+
import { TestBrowser } from '@@/testBrowser';
2+
import { act, fireEvent, render } from '@testing-library/react';
23
import React from 'react';
3-
import { TestBrowser } from '@@/testBrowser';
44

55
// @ts-ignore
66
import { startMock } from '@@/requestRecordMock';

0 commit comments

Comments
 (0)