From c84551f1e6aa716edd6634eda43cbef2263de906 Mon Sep 17 00:00:00 2001 From: Nissa Seru <119150866+nissa-seru@users.noreply.github.com> Date: Sat, 8 Feb 2025 07:31:48 -0500 Subject: [PATCH] Add `lint-fix` command; existing `lint` command is unchanged --- package.json | 3 ++- webview-ui/package.json | 1 + 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/package.json b/package.json index 97cca7d8c0..e0301792b6 100644 --- a/package.json +++ b/package.json @@ -271,7 +271,8 @@ "compile": "tsc -p . --outDir out && node esbuild.js", "compile:integration": "tsc -p tsconfig.integration.json", "install:all": "npm install && cd webview-ui && npm install", - "lint": "eslint src --ext ts && npm run lint --prefix webview-ui", + "lint-fix": "eslint src --ext ts && npm run lint --prefix webview-ui", + "lint-fix": "eslint src --ext ts --fix && npm run lint-fix --prefix webview-ui", "package": "npm run build:webview && npm run check-types && npm run lint && node esbuild.js --production", "pretest": "npm run compile && npm run compile:integration", "dev": "cd webview-ui && npm run dev", diff --git a/webview-ui/package.json b/webview-ui/package.json index d7a5765690..3317551f20 100644 --- a/webview-ui/package.json +++ b/webview-ui/package.json @@ -5,6 +5,7 @@ "type": "module", "scripts": { "lint": "eslint src --ext ts,tsx", + "lint-fix": "eslint src --ext ts,tsx --fix", "check-types": "tsc --noEmit", "test": "jest", "dev": "vite",