From: Jérôme Benoit Date: Mon, 24 Apr 2023 23:04:15 +0000 (+0200) Subject: build(ui): enable eslint cache X-Git-Tag: v1.2.12~83 X-Git-Url: https://git.piment-noir.org/?a=commitdiff_plain;h=67259cdc38294e42febd09c8eefac578920e8e7c;p=e-mobility-charging-stations-simulator.git build(ui): enable eslint cache Signed-off-by: Jérôme Benoit --- diff --git a/ui/web/.lintstagedrc.js b/ui/web/.lintstagedrc.js index 2018e319..c447bcc3 100644 --- a/ui/web/.lintstagedrc.js +++ b/ui/web/.lintstagedrc.js @@ -1,5 +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', + 'eslint . --cache --ext .vue,.js,.jsx,.cjs,.mjs,.ts,.tsx,.cts,.mts --fix --ignore-path .gitignore', '*.{json,md,yml,yaml}': 'prettier --cache --write', }; diff --git a/ui/web/.vscode/settings.json b/ui/web/.vscode/settings.json index 9ed868ae..7e263863 100644 --- a/ui/web/.vscode/settings.json +++ b/ui/web/.vscode/settings.json @@ -2,5 +2,5 @@ "editor.codeActionsOnSave": { "source.fixAll": true }, - "cSpell.words": ["composables", "iccid", "idtag", "imsi", "ocpp", "RFID"] + "cSpell.words": ["composables", "finalhandler", "iccid", "idtag", "imsi", "ocpp", "RFID"] } diff --git a/ui/web/package.json b/ui/web/package.json index 2ab66b06..21a65989 100644 --- a/ui/web/package.json +++ b/ui/web/package.json @@ -18,8 +18,8 @@ "build": "vite build", "clean:dist": "npx rimraf dist", "clean:node_modules": "npx rimraf node_modules", - "lint": "eslint . --ext .vue,.js,.jsx,.cjs,.mjs,.ts,.tsx,.cts,.mts --ignore-path .gitignore", - "lint:fix": "eslint . --ext .vue,.js,.jsx,.cjs,.mjs,.ts,.tsx,.cts,.mts --fix --ignore-path .gitignore", + "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", "test": "vitest" }, "dependencies": {