build: untangle ui and simulator code linting and formatting
[e-mobility-charging-stations-simulator.git] / ui / web / package.json
index 11a1f8233d857f812ff44ff85fb7e350c2b6ab38..06683cec16917c69da103420540c66b11c40b940 100644 (file)
@@ -18,8 +18,9 @@
     "build": "vite build",
     "clean:dist": "npx rimraf dist",
     "clean:node_modules": "npx rimraf node_modules",
-    "lint": "eslint . --cache --ext .vue,.js,.jsx,.cjs,.mjs,.ts,.tsx,.cts,.mts --ignore-path .gitignore",
-    "lint:fix": "eslint . --cache --ext .vue,.js,.jsx,.cjs,.mjs,.ts,.tsx,.cts,.mts --fix --ignore-path .gitignore",
+    "lint": "cross-env TIMING=1 eslint . --cache --ext .vue,.js,.jsx,.cjs,.mjs,.ts,.tsx,.cts,.mts --ignore-path .gitignore",
+    "lint:fix": "cross-env TIMING=1 eslint . --cache --ext .vue,.js,.jsx,.cjs,.mjs,.ts,.tsx,.cts,.mts --fix --ignore-path .gitignore",
+    "format": "prettier --cache --write .",
     "test": "vitest"
   },
   "dependencies": {
     "@typescript-eslint/parser": "^5.59.1",
     "@vitejs/plugin-vue": "^4.2.1",
     "@vitejs/plugin-vue-jsx": "^3.0.1",
+    "@volar/vue-typescript": "^1.6.1",
     "@vue/eslint-config-prettier": "^7.1.0",
     "@vue/eslint-config-typescript": "^11.0.3",
     "@vue/test-utils": "^2.3.2",
     "@vue/tsconfig": "^0.3.2",
+    "cross-env": "^7.0.3",
     "eslint": "^8.39.0",
     "eslint-define-config": "^1.20.0",
     "eslint-plugin-vue": "^9.11.0",
     "jsdom": "^21.1.1",
     "prettier": "^2.8.8",
+    "prettier-plugin-organize-imports": "^3.2.2",
     "rimraf": "^5.0.0",
     "typescript": "~5.0.4",
     "vite": "^4.3.3",