瀏覽代碼

adds import extensions rule (#23603)

Gianmarco 3 年之前
父節點
當前提交
3273c151dc
共有 2 個文件被更改,包括 767 次插入5 次删除
  1. 760 4
      package-lock.json
  2. 7 1
      package.json

文件差異過大導致無法顯示
+ 760 - 4
package-lock.json


+ 7 - 1
package.json

@@ -47,7 +47,8 @@
       }
     },
     "plugins": [
-      "html"
+      "html",
+      "import"
     ],
     "globals": {
       "__THREE_DEVTOOLS__": "readonly",
@@ -68,6 +69,10 @@
       "no-throw-literal": [
         "error"
       ],
+      "import/extensions": [
+        "error",
+        "always"
+      ],
       "quotes": [
         "error",
         "single"
@@ -132,6 +137,7 @@
     "eslint": "^7.32.0",
     "eslint-config-mdcs": "^5.0.0",
     "eslint-plugin-html": "^6.2.0",
+    "eslint-plugin-import": "^2.25.4",
     "rollup": "^2.57.0",
     "rollup-plugin-filesize": "^9.1.1",
     "rollup-plugin-terser": "^7.0.2",

部分文件因文件數量過多而無法顯示