Skip to content

Commit

Permalink
chore: ci
Browse files Browse the repository at this point in the history
  • Loading branch information
xiaohuoni committed Dec 1, 2023
1 parent b5ee6eb commit 523a182
Show file tree
Hide file tree
Showing 18 changed files with 2,996 additions and 8,928 deletions.
5 changes: 4 additions & 1 deletion .eslintignore
Original file line number Diff line number Diff line change
Expand Up @@ -5,4 +5,7 @@ _scripts
_test_
.eslintrc.js

node_modules
node_modules
.husky/**
pnpm-lock.yaml
.npmrc
3 changes: 3 additions & 0 deletions .prettierignore
Original file line number Diff line number Diff line change
Expand Up @@ -21,3 +21,6 @@ yarn-error.log
CNAME
/build
umi-block.json
.husky/**
pnpm-lock.yaml
.npmrc
2 changes: 1 addition & 1 deletion AccountCenter/src/_mock.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// eslint-disable-next-line import/no-extraneous-dependencies
// @ts-nocheck
import type { Request, Response } from 'express';
import type { ListItemDataType } from './data.d';

Expand Down
2 changes: 1 addition & 1 deletion AccountSettings/src/_mock.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// eslint-disable-next-line import/no-extraneous-dependencies
// @ts-nocheck
import type { Request, Response } from 'express';

const city = require('./geographic/city.json');
Expand Down
2 changes: 1 addition & 1 deletion FormAdvancedForm/src/_mock.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// eslint-disable-next-line import/no-extraneous-dependencies
// @ts-nocheck
import type { Request, Response } from 'express';

export default {
Expand Down
2 changes: 1 addition & 1 deletion FormBasicForm/src/_mock.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// eslint-disable-next-line import/no-extraneous-dependencies
// @ts-nocheck
import type { Request, Response } from 'express';

export default {
Expand Down
2 changes: 1 addition & 1 deletion FormStepForm/src/_mock.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// eslint-disable-next-line import/no-extraneous-dependencies
// @ts-nocheck
import type { Request, Response } from 'express';

export default {
Expand Down
2 changes: 1 addition & 1 deletion ListBasicList/src/_mock.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// eslint-disable-next-line import/no-extraneous-dependencies
// @ts-nocheck
import type { Request, Response } from 'express';
import type { BasicListItemDataType } from './data.d';

Expand Down
2 changes: 1 addition & 1 deletion ListCardList/src/_mock.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// eslint-disable-next-line import/no-extraneous-dependencies
// @ts-nocheck
import type { Request, Response } from 'express';
import type { CardListItemDataType } from './data.d';

Expand Down
2 changes: 1 addition & 1 deletion ListSearchApplications/src/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -182,7 +182,7 @@ export const PAGE_NAME_UPPER_CAMEL_CASE: FC<Record<string, any>> = () => {
]}
>
<Card.Meta avatar={<Avatar size="small" src={item.avatar} />} title={item.title} />
<div className={styles.cardItemContent}>
<div>
<CardInfo
activeUser={formatWan(item.activeUser)}
newUser={numeral(item.newUser).format('0,0')}
Expand Down
2 changes: 1 addition & 1 deletion ListSearchArticles/src/_mock.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// eslint-disable-next-line import/no-extraneous-dependencies
// @ts-nocheck
import type { Request, Response } from 'express';
import type { ListItemDataType } from './data.d';

Expand Down
2 changes: 1 addition & 1 deletion ListTableList/src/_mock.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// eslint-disable-next-line import/no-extraneous-dependencies
// @ts-nocheck
import type { Request, Response } from 'express';
import { parse } from 'url';
import type { TableListItem, TableListParams } from './data.d';
Expand Down
1 change: 1 addition & 0 deletions ListTableList/src/components/CreateForm.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@ const CreateForm: React.FC<CreateFormProps> = (props) => {
onCancel={() => onCancel()}
footer={null}
>
{/* @ts-ignore */}
{props.children}
</Modal>
);
Expand Down
2 changes: 1 addition & 1 deletion UserRegister/src/_mock.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// eslint-disable-next-line import/no-extraneous-dependencies
// @ts-nocheck
import type { Request, Response } from 'express';

export default {
Expand Down
7 changes: 2 additions & 5 deletions UserRegister/src/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -88,10 +88,7 @@ const PAGE_NAME_UPPER_CAMEL_CASE: FC = () => {
if (data.status === 'ok') {
message.success('注册成功!');
history.push({
pathname: '/user/register-result',
state: {
account: params.email,
},
pathname: `/user/register-result?account=${params.email}`,
});
}
},
Expand Down Expand Up @@ -137,10 +134,10 @@ const PAGE_NAME_UPPER_CAMEL_CASE: FC = () => {
const value = form.getFieldValue('password');
const passwordStatus = getPasswordStatus();
return value && value.length ? (
// @ts-ignore
<div className={styles[`progress-${passwordStatus}`]}>
<Progress
status={passwordProgressMap[passwordStatus]}
className={styles.progress}
strokeWidth={6}
percent={value.length * 10 > 100 ? 100 : value.length * 10}
showInfo={false}
Expand Down
4 changes: 2 additions & 2 deletions UserRegisterResult/src/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -22,8 +22,8 @@ const PAGE_NAME_UPPER_CAMEL_CASE: React.FC<RouteChildrenProps> = () => {
</div>
);

const email = location.state
? (location.state as LocationState).account
const email: string = location.state
? ((location.state as LocationState).account as string)
: '[email protected]';
return (
<Result
Expand Down
16 changes: 8 additions & 8 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -32,12 +32,12 @@
],
"scripts": {
"postinstall": "max setup",
"lint": "npm run lint:js && npm run lint:prettier && npm run tsc",
"lint-staged": "lint-staged",
"lint-staged:js": "eslint --ext .js,.jsx,.ts,.tsx ",
"lint:fix": "eslint --fix --cache --ext .js,.jsx,.ts,.tsx --format=pretty ./src ",
"lint:js": "eslint --cache --ext .js,.jsx,.ts,.tsx --format=pretty ./src",
"lint:prettier": "prettier -c --write \"**/**.{js,jsx,tsx,ts,less,md,json}\" --end-of-line auto",
"lint": "npm run lint:js && tsc --noEmit",
"lint-staged": "lint-staged && node ./.script/genBlockConfig.js&& git add ./umi-block.json",
"lint-staged:js": "eslint --ext .js,.jsx,.ts,.tsx",
"lint:fix": "eslint --fix --cache --ext .js,.jsx,.ts,.tsx --format=pretty ./",
"lint:js": "eslint --cache --ext .js,.jsx,.ts,.tsx --format=pretty ./",
"lint:prettier": "prettier --check \"**/*\" --end-of-line auto",
"prettier": "prettier -c --write \"**/*\"",
"screenshot": "pro screenshot",
"start": "max dev",
Expand Down Expand Up @@ -67,8 +67,8 @@
"devDependencies": {
"@types/classnames": "^2.2.7",
"@types/numeral": "^0.0.28",
"@types/react": "^18.2.39",
"@types/react-dom": "^18.2.17",
"@types/react": "17.0.30",
"@types/react-dom": "^17.0.25",
"cross-env": "^7.0.0",
"eslint": "^8.35.0",
"husky": "^8.0.0",
Expand Down
Loading

0 comments on commit 523a182

Please sign in to comment.