Skip to content

Commit 68cc942

Browse files
authored
Merge pull request #871 from nissa-seru/fix-vsix-add-lint-fix
Fix vsix command; add lint-fix; add .gitignore entry for .eslintrc.local.json
2 parents 910bdf1 + 987fabb commit 68cc942

File tree

3 files changed

+6
-1
lines changed

3 files changed

+6
-1
lines changed

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,3 +22,4 @@ docs/_site/
2222

2323
# Dotenv
2424
.env.integration
25+
.eslintrc.local.json

package.json

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -272,6 +272,7 @@
272272
"compile:integration": "tsc -p tsconfig.integration.json",
273273
"install:all": "npm install && cd webview-ui && npm install",
274274
"lint": "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",
@@ -283,7 +284,7 @@
283284
"publish": "npm run build && changeset publish && npm install --package-lock-only",
284285
"version-packages": "changeset version && npm install --package-lock-only",
285286
"vscode:prepublish": "npm run package",
286-
"vsix": "mkdir -p bin && npx vsce package --out bin",
287+
"vsix": "rimraf bin && mkdirp bin && npx vsce package --out bin",
287288
"watch": "npm-run-all -p watch:*",
288289
"watch:esbuild": "node esbuild.js --watch",
289290
"watch:tsc": "tsc --noEmit --watch --project tsconfig.json",
@@ -350,6 +351,8 @@
350351
"@vscode/test-cli": "^0.0.9",
351352
"@vscode/test-electron": "^2.4.0",
352353
"esbuild": "^0.24.0",
354+
"mkdirp": "^3.0.1",
355+
"rimraf": "^6.0.1",
353356
"eslint": "^8.57.0",
354357
"husky": "^9.1.7",
355358
"jest": "^29.7.0",

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)