build(ui): refine lint-staged configuration
authorJérôme Benoit <jerome.benoit@sap.com>
Mon, 24 Apr 2023 22:58:35 +0000 (00:58 +0200)
committerJérôme Benoit <jerome.benoit@sap.com>
Mon, 24 Apr 2023 22:58:35 +0000 (00:58 +0200)
Signed-off-by: Jérôme Benoit <jerome.benoit@sap.com>
ui/web/.lintstagedrc.js
ui/web/.vscode/settings.json

index 8e97502a05c1720164d1863b2f42555baa246c77..2018e319cae35c3b9e3345fb8533f474b0f3a5ec 100644 (file)
@@ -1,4 +1,5 @@
 module.exports = {
   '*.{js,jsx,vue,cjs,mjs,ts,tsx,cts,mts}':
     'eslint . --ext .vue,.js,.jsx,.cjs,.mjs,.ts,.tsx,.cts,.mts --fix --ignore-path .gitignore',
+    '*.{json,md,yml,yaml}': 'prettier --cache --write',
 };
index 6ff436bb71fdcdfda230650191641f080a009edc..9ed868ae38a27568a0a5605886e6b4190f9355d1 100644 (file)
@@ -2,12 +2,5 @@
   "editor.codeActionsOnSave": {
     "source.fixAll": true
   },
-  "cSpell.words": [
-    "composables",
-    "iccid",
-    "idtag",
-    "imsi",
-    "ocpp",
-    "RFID"
-  ]
+  "cSpell.words": ["composables", "iccid", "idtag", "imsi", "ocpp", "RFID"]
 }