From 81c7496264402e18fd16a52400ff6401d4b63fef Mon Sep 17 00:00:00 2001 From: Bastien Wirtz Date: Mon, 29 Sep 2025 21:53:11 +0200 Subject: [PATCH] feat: Inject package.json version into the app --- eslint.config.js | 9 ++++++++- src/App.vue | 2 +- vite.config.js | 15 +++++++++++++++ 3 files changed, 24 insertions(+), 2 deletions(-) diff --git a/eslint.config.js b/eslint.config.js index 24f9a96..c210ee8 100644 --- a/eslint.config.js +++ b/eslint.config.js @@ -6,7 +6,14 @@ import eslintConfigPrettier from "@vue/eslint-config-prettier"; /** @type {import('eslint').Linter.Config[]} */ export default [ { files: ["**/*.{js,mjs,cjs,vue}"] }, - { languageOptions: { globals: globals.browser } }, + { + languageOptions: { + globals: { + ...globals.browser, + __APP_VERSION__: "readable", + }, + }, + }, pluginJs.configs.recommended, ...pluginVue.configs["flat/recommended"], eslintConfigPrettier, diff --git a/src/App.vue b/src/App.vue index 4f02320..7a12097 100644 --- a/src/App.vue +++ b/src/App.vue @@ -54,7 +54,6 @@ /> -