Browse Source

adds import extensions rule (#23603)

Gianmarco 3 years ago
parent
commit
3273c151dc
2 changed files with 767 additions and 5 deletions
  1. 760 4
      package-lock.json
  2. 7 1
      package.json

File diff suppressed because it is too large
+ 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",

Some files were not shown because too many files changed in this diff