From a9f74578bd6668466fb2f0d5721b2c2c569a9c12 Mon Sep 17 00:00:00 2001 From: NI Date: Sat, 10 Jul 2021 10:10:21 +0800 Subject: [PATCH] Treat `no-unused-vars` as warning instead of error --- .eslintrc.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.eslintrc.js b/.eslintrc.js index 3ba4d5db..95b06689 100644 --- a/.eslintrc.js +++ b/.eslintrc.js @@ -16,7 +16,7 @@ module.exports = { "vue/component-name-in-template-casing": ["error", "PascalCase"], "no-console": process.env.NODE_ENV === "production" ? "warn" : "off", "no-debugger": process.env.NODE_ENV === "production" ? "error" : "off", - "no-unused-vars": process.env.NODE_ENV === "production" ? "warn" : "error", + "no-unused-vars": process.env.NODE_ENV === "production" ? "off" : "warn", }, globals: { $nuxt: true,