瀏覽代碼

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 年之前
父節點
當前提交
c8db16c6fb
共有 1 個文件被更改,包括 1 次插入1 次删除
  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",