From 957d45344d84a0863034e9cb252972a55aa9038f Mon Sep 17 00:00:00 2001 From: klemek Date: Mon, 16 Mar 2026 23:06:19 +0100 Subject: [PATCH] remove console print --- Makefile | 2 +- eslint.config.mjs | 28 +++++++++++++++++----------- src/components/LucideIcon.vue | 6 +----- 3 files changed, 19 insertions(+), 17 deletions(-) diff --git a/Makefile b/Makefile index d6fa6bd..e309477 100644 --- a/Makefile +++ b/Makefile @@ -28,7 +28,7 @@ lint: node_modules ## lint code @$(BUN) run lint @$(BUN) run type-check -fix: node_modules ## fix and reformat code +format: node_modules ## fix and reformat code @$(BUN) run format @$(BUN) run lint-fix diff --git a/eslint.config.mjs b/eslint.config.mjs index f78a1d2..6f566f3 100644 --- a/eslint.config.mjs +++ b/eslint.config.mjs @@ -1,7 +1,7 @@ import { globalIgnores } from "eslint/config"; import { - defineConfigWithVueTs, - vueTsConfigs, + defineConfigWithVueTs, + vueTsConfigs, } from "@vue/eslint-config-typescript"; import pluginVue from "eslint-plugin-vue"; import skipFormatting from "@vue/eslint-config-prettier/skip-formatting"; @@ -10,15 +10,21 @@ import { configureVueProject } from "@vue/eslint-config-typescript"; configureVueProject({ scriptLangs: ["ts", "tsx"] }); export default defineConfigWithVueTs( - { - name: "app/files-to-lint", - files: ["**/*.{ts,mts,tsx,vue}"], - }, + { + name: "app/files-to-lint", + files: ["**/*.{ts,mts,tsx,vue}"], + }, - globalIgnores(["**/dist/**"]), + globalIgnores(["**/dist/**"]), - pluginVue.configs["flat/recommended"], - vueTsConfigs.strictTypeChecked, - vueTsConfigs.stylisticTypeChecked, - skipFormatting, + pluginVue.configs["flat/recommended"], + vueTsConfigs.strictTypeChecked, + vueTsConfigs.stylisticTypeChecked, + skipFormatting, + + { + rules: { + "no-console": "error", + }, + }, ); diff --git a/src/components/LucideIcon.vue b/src/components/LucideIcon.vue index a880720..5d66803 100644 --- a/src/components/LucideIcon.vue +++ b/src/components/LucideIcon.vue @@ -1,5 +1,5 @@