Browse Source

Make eslint rule an error instead of a warning

This will `@typescript-eslint/no-unused-vars` an error instead of a warning. It's helpful for the rule to error so that the build will fail so that you don't have to check the logs to see if there was a warning. See https://github.com/mrdoob/three.js/pull/20467 for context.
Nathan Bierema 4 năm trước cách đây
mục cha
commit
c8db16c6fb
1 tập tin đã thay đổi với 1 bổ sung1 xóa
  1. 1 1
      package.json

+ 1 - 1
package.json

@@ -34,7 +34,7 @@
       "@typescript-eslint"
     ],
     "rules": {
-      "@typescript-eslint/no-unused-vars": 1,
+      "@typescript-eslint/no-unused-vars": "error",
       "@typescript-eslint/indent": [
         "error",
         "tab",