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/bun.lock b/bun.lock index f1eb02b..af69717 100644 --- a/bun.lock +++ b/bun.lock @@ -1,5 +1,6 @@ { "lockfileVersion": 1, + "configVersion": 0, "workspaces": { "": { "name": "vue-boilerplate", 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/ConfigTable.vue b/src/components/ConfigTable.vue index 722f7de..8c139bb 100644 --- a/src/components/ConfigTable.vue +++ b/src/components/ConfigTable.vue @@ -106,7 +106,8 @@ watch(config, saveConfig, { deep: true });