Skip to content

Commit c84551f

Browse files
committed
Add lint-fix command; existing lint command is unchanged
1 parent b6eb80e commit c84551f

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed

package.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -271,7 +271,8 @@
271271
"compile": "tsc -p . --outDir out && node esbuild.js",
272272
"compile:integration": "tsc -p tsconfig.integration.json",
273273
"install:all": "npm install && cd webview-ui && npm install",
274-
"lint": "eslint src --ext ts && npm run lint --prefix webview-ui",
274+
"lint-fix": "eslint src --ext ts && npm run lint --prefix webview-ui",
275+
"lint-fix": "eslint src --ext ts --fix && npm run lint-fix --prefix webview-ui",
275276
"package": "npm run build:webview && npm run check-types && npm run lint && node esbuild.js --production",
276277
"pretest": "npm run compile && npm run compile:integration",
277278
"dev": "cd webview-ui && npm run dev",

webview-ui/package.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@
55
"type": "module",
66
"scripts": {
77
"lint": "eslint src --ext ts,tsx",
8+
"lint-fix": "eslint src --ext ts,tsx --fix",
89
"check-types": "tsc --noEmit",
910
"test": "jest",
1011
"dev": "vite",

0 commit comments

Comments
 (0)