Add lint-fix command; existing lint command is unchanged

This commit is contained in:
Nissa Seru 2025-02-08 07:31:48 -05:00
parent b6eb80e10d
commit c84551f1e6
2 changed files with 3 additions and 1 deletions

View file

@ -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",

View file

@ -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",