From 67259cdc38294e42febd09c8eefac578920e8e7c Mon Sep 17 00:00:00 2001 From: =?utf8?q?J=C3=A9r=C3=B4me=20Benoit?= Date: Tue, 25 Apr 2023 01:04:15 +0200 Subject: [PATCH] build(ui): enable eslint cache MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit Signed-off-by: Jérôme Benoit --- ui/web/.lintstagedrc.js | 2 +- ui/web/.vscode/settings.json | 2 +- ui/web/package.json | 4 ++-- 3 files changed, 4 insertions(+), 4 deletions(-) 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": { -- 2.34.1