浏览代码

格式化

xyh 2 年之前
父节点
当前提交
45555a6a43

+ 1 - 0
.eslintrc.cjs

@@ -10,6 +10,7 @@ module.exports = {
     tsconfigRootDir: __dirname,
     warnOnUnsupportedTypeScriptVersion: true,
   },
+
   overrides: [
     {
       files: ['cypress/**', 'cypress.config.ts'],

+ 1 - 1
package.json

@@ -32,7 +32,7 @@
     "@typescript-eslint/eslint-plugin": "^5.46.1",
     "@typescript-eslint/parser": "^5.46.1",
     "eslint": "^8.29.0",
-    "eslint-config-proste": "^4.0.1",
+    "eslint-config-proste": "^4.1.0",
     "eslint-plugin-cypress": "^2.12.1",
     "eslint-plugin-import": "^2.27.5",
     "eslint-plugin-import-newlines": "^1.3.0",

+ 1 - 1
packages/app/src/components/filter-button-group/index.tsx

@@ -24,7 +24,7 @@ const FiterButtonGroup: FC<Props> = function({
 }) {
   return (
     <>
-      <Col span={6} style={!disableAlign ? colStyle : void 0} offset={offset}>
+      <Col span={6} style={disableAlign ? void 0 : colStyle} offset={offset}>
         <Space>
           <Button
             loading={isSearching}

+ 4 - 2
packages/app/src/pages/department/table/modal/hooks.ts

@@ -25,7 +25,8 @@ function useAdd(onClose: () => void, onFetch: () => void) {
           message.success('新增成功');
         }
       },
-    });
+    },
+  );
 
   return [isLoading, mutate] as const;
 }
@@ -41,7 +42,8 @@ function useEdit(onClose: () => void, onFetch: () => void) {
           message.success('修改成功');
         }
       },
-    });
+    },
+  );
 
   return [isLoading, mutate] as const;
 }

+ 2 - 1
packages/app/src/pages/role/table/modal/hooks.ts

@@ -72,7 +72,8 @@ export function useFormState(
   {
     visible: boolean, id: string,
     onFetch: () => void, onClose: () => void
-  }) {
+  },
+) {
   const {handleSubmit, setValue, control, clearErrors} = useForm<FormState>({
     defaultValues: {
       roleName: '',

+ 1 - 1
packages/app/src/pages/storage/filter/index.tsx

@@ -22,8 +22,8 @@ const Filter: FC = function() {
     <Card>
       <Space direction='vertical' className='width-full' size='middle'>
         <Row>
-          <FilterField name='storageName' label='库位名称' value={name} onChange={onChange('name')} />
           <FilterField name='storageCode' label='库位编号' value={code} onChange={onChange('code')} />
+          <FilterField name='storageName' label='库位名称' value={name} onChange={onChange('name')} />
           <FilterField name='storageType' label='库位类型' value={type} onChange={onChange('type')} />
           <FilterSelect
             name='storageState'

+ 1 - 2
packages/app/src/pages/storage/table/modal/hooks.ts

@@ -84,8 +84,7 @@ export function useFormState(
   }, [clearErrors, visible]);
 
   const [isAddLoading, addMutate] = useAdd(onClose, onFetch);
-  const [isEditLoading, editMutate] = useEdit(
-    onClose, onFetch);
+  const [isEditLoading, editMutate] = useEdit(onClose, onFetch);
   const isLoading = isAddLoading || isEditLoading;
 
   const onSubmit = handleSubmit(function({

+ 1 - 1
packages/app/src/utils/constants.ts

@@ -3,7 +3,7 @@ export const USER_TOKEN_STORAGE = 'user_token';
 /** 页码列表 */
 export const PAGE_SIZE_LIST = ['10', '30', '50', '80', '100'];
 /** 请求域名 */
-export const NETWORK_URL = 'http://192.168.0.119:9560';
+export const NETWORK_URL = 'http://192.168.0.118:9560';
 export const E2E_NETWORK_URL = 'http://e2e.test.cn';
 /** 导出错误提示 */
 export const EXPORT_ERROR_TIPS = '导出错误,请稍后再试';

+ 4 - 4
pnpm-lock.yaml

@@ -10,7 +10,7 @@ importers:
       '@typescript-eslint/parser': ^5.46.1
       cypress: ^12.5.1
       eslint: ^8.29.0
-      eslint-config-proste: ^4.0.1
+      eslint-config-proste: ^4.1.0
       eslint-plugin-cypress: ^2.12.1
       eslint-plugin-import: ^2.27.5
       eslint-plugin-import-newlines: ^1.3.0
@@ -32,7 +32,7 @@ importers:
       '@typescript-eslint/eslint-plugin': 5.46.1_imrg37k3svwu377c6q7gkarwmi
       '@typescript-eslint/parser': 5.46.1_ha6vam6werchizxrnqvarmz2zu
       eslint: 8.29.0
-      eslint-config-proste: 4.0.1_y5shlxk35xjrzts7w4c7er455a
+      eslint-config-proste: 4.1.0_y5shlxk35xjrzts7w4c7er455a
       eslint-plugin-cypress: 2.12.1_eslint@8.29.0
       eslint-plugin-import: 2.27.5_z7hwuz3w5sq2sbhy7d4iqrnsvq
       eslint-plugin-import-newlines: 1.3.0_eslint@8.29.0
@@ -5250,8 +5250,8 @@ packages:
       source-map: 0.6.1
     dev: true
 
-  /eslint-config-proste/4.0.1_y5shlxk35xjrzts7w4c7er455a:
-    resolution: {integrity: sha512-8eQnxsqC/tiJaNkuT6a2EW3nAxnZfX+xWJdKdrWJwd0Or49/SEoApqHcRF85BsOgB4I+NESTGBaovY2lN+3mkg==}
+  /eslint-config-proste/4.1.0_y5shlxk35xjrzts7w4c7er455a:
+    resolution: {integrity: sha512-95s6QNYZvQMzlIEWpkMz1j54qkuSZZtCj+WDcvytHR2uuVNTIU67lnXLUPChF2xbpWjpCg3KR8cPWQthOcY+KQ==}
     peerDependencies:
       '@typescript-eslint/eslint-plugin': '>=5.4.0'
       '@typescript-eslint/parser': '>=5.4.0'