소스 검색

feat: 加入标签自闭合规则

lanjianrong 4 년 전
부모
커밋
1d3d2b8980
1개의 변경된 파일5개의 추가작업 그리고 1개의 파일을 삭제
  1. 5 1
      .eslintrc

+ 5 - 1
.eslintrc

@@ -24,7 +24,11 @@
     "react/prop-types": 0,
     "array-bracket-spacing": ["error", "always"],
     "object-curly-spacing": ["error", "always"],
-    "react-hooks/rules-of-hooks": "error"
+    "react-hooks/rules-of-hooks": "error",
+    "react/self-closing-comp": ["error", {
+      "component": true,
+      "html": true
+    }]
     // "react-hooks/exhaustive-deps": "warn"
   },
   "settings": {