Browse Source

应用TypeScript 风格规则

dengdx 2 months ago
parent
commit
b692ef48cd
2 changed files with 11 additions and 5 deletions
  1. 2 2
      eslint.config.mjs
  2. 9 3
      src/pages/patient/components/BinOperationPanel.tsx

+ 2 - 2
eslint.config.mjs

@@ -10,8 +10,8 @@ export default tseslint.config(
     eslint.configs.recommended,
     eslint.configs.recommended,
     // TypeScript 推荐规则
     // TypeScript 推荐规则
     ...tseslint.configs.recommended,
     ...tseslint.configs.recommended,
-    //   // TypeScript 风格规则(可选)
-    //   ...tseslint.configs.stylistic,
+    // TypeScript 风格规则(可选)
+    ...tseslint.configs.stylistic,
     // Prettier 配置
     // Prettier 配置
 
 
     prettierConfig,
     prettierConfig,

+ 9 - 3
src/pages/patient/components/BinOperationPanel.tsx

@@ -11,9 +11,15 @@ const BinOperationPanel: React.FC = () => {
           totalCapacity={1000}
           totalCapacity={1000}
           freeSpace={500}
           freeSpace={500}
           binCapacity={100}
           binCapacity={100}
-          onDelete={() => {}}
-          onRestore={() => {}}
-          onEmpty={() => {}}
+          onDelete={() => {
+            /* TODO: implement delete logic */
+          }}
+          onRestore={() => {
+            /* TODO: implement restore logic */
+          }}
+          onEmpty={() => {
+            /* TODO: implement empty logic */
+          }}
         />
         />
       </div>
       </div>
     </div>
     </div>