From b23ee08dfbf684d8004c4ca11cce7913f7d8d2cc Mon Sep 17 00:00:00 2001 From: Arsenie Coseac <124933924+acoseac@users.noreply.github.com> Date: Sun, 16 Aug 2026 22:14:07 +0200 Subject: [PATCH] fix(webapp): make the lint script work `npm run lint` fails with No files matching the pattern "src/modules/qrcode.vue" were found. The glob is unquoted, so the shell expands it and hands eslint the vendored src/modules/qrcode.vue directory as an explicit target. Its contents are excluded through ignorePatterns in .eslintrc.cjs, so eslint finds nothing to lint there and exits with an error. Quoting the pattern lets eslint expand it instead. That skips the directory, and also applies `**` as a real globstar: sh has no globstar, so the previous invocation only ever reached one directory level and never linted src/components/Field/ or src/views/Console/. 73 files are linted now instead of 37. The added coverage surfaced one pre-existing error, an unused `and` import in two record components, which is removed here so that the script passes. --- www/webapp/package.json | 4 ++-- www/webapp/src/components/Field/RecordDS.vue | 2 +- www/webapp/src/components/Field/RecordTLSA.vue | 2 +- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/www/webapp/package.json b/www/webapp/package.json index b4c3f7ce1..a3ec349a2 100644 --- a/www/webapp/package.json +++ b/www/webapp/package.json @@ -8,8 +8,8 @@ "build": "vite build", "test": "vitest run", "test:watch": "vitest", - "lint": "eslint --ignore-path .gitignore --no-fix src/**/*.{vue,js,json}", - "lint:fix": "eslint --ignore-path .gitignore --fix src/**/*.{vue,js,json}", + "lint": "eslint --ignore-path .gitignore --no-fix \"src/**/*.{vue,js,json}\"", + "lint:fix": "eslint --ignore-path .gitignore --fix \"src/**/*.{vue,js,json}\"", "postinstall": "vue-demi-switch 3" }, "type": "module", diff --git a/www/webapp/src/components/Field/RecordDS.vue b/www/webapp/src/components/Field/RecordDS.vue index 39b53d44c..bdc6502d6 100644 --- a/www/webapp/src/components/Field/RecordDS.vue +++ b/www/webapp/src/components/Field/RecordDS.vue @@ -1,5 +1,5 @@