From d66547de67830b9fee4ff8bd0f5719c6e338ef61 Mon Sep 17 00:00:00 2001 From: Andrew Scott Date: Tue, 16 Apr 2024 14:28:08 -0700 Subject: [PATCH] feat: allow unused `const props = defineProps` --- content/Coalesce.Starter.Vue.Web/.eslintrc.cjs | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/content/Coalesce.Starter.Vue.Web/.eslintrc.cjs b/content/Coalesce.Starter.Vue.Web/.eslintrc.cjs index 12b3823..f6eaca7 100644 --- a/content/Coalesce.Starter.Vue.Web/.eslintrc.cjs +++ b/content/Coalesce.Starter.Vue.Web/.eslintrc.cjs @@ -16,6 +16,16 @@ module.exports = { "no-debugger": process.env.NODE_ENV === "production" ? "warn" : "off", "no-console": "off", "no-undef": "off", // Redundant with Typescript + + "@typescript-eslint/no-unused-vars": [ + "error", + { + varsIgnorePattern: + // Allow unused `const props = defineProps` (if props are only used in the template of an SFC) + "props", + args: "none" + }, + ], }, ignorePatterns: ["wwwroot", "node_modules", "/**/*.g.ts"], };