Skip to content

Commit b7571df

Browse files
committed
run lint on webview-ui
1 parent 6db30b5 commit b7571df

File tree

3 files changed

+7
-4
lines changed

3 files changed

+7
-4
lines changed

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -153,7 +153,7 @@
153153
"compile": "npm run check-types && npm run lint && node esbuild.js",
154154
"compile-tests": "tsc -p . --outDir out",
155155
"install:all": "npm install && cd webview-ui && npm install",
156-
"lint": "eslint src --ext ts",
156+
"lint": "eslint src --ext ts && npm run lint --prefix webview-ui",
157157
"package": "npm run build:webview && npm run check-types && npm run lint && node esbuild.js --production",
158158
"pretest": "npm run compile-tests && npm run compile && npm run lint",
159159
"start:webview": "cd webview-ui && npm run start",

webview-ui/package-lock.json

Lines changed: 2 additions & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

webview-ui/package.json

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,8 @@
3131
"start": "react-scripts start",
3232
"build": "node ./scripts/build-react-no-split.js",
3333
"test": "react-scripts test --watchAll=false",
34-
"eject": "react-scripts eject"
34+
"eject": "react-scripts eject",
35+
"lint": "eslint src --ext ts,tsx"
3536
},
3637
"eslintConfig": {
3738
"extends": [
@@ -53,7 +54,8 @@
5354
},
5455
"devDependencies": {
5556
"@babel/plugin-proposal-private-property-in-object": "^7.21.11",
56-
"@types/vscode-webview": "^1.57.5"
57+
"@types/vscode-webview": "^1.57.5",
58+
"eslint": "^8.57.0"
5759
},
5860
"jest": {
5961
"transformIgnorePatterns": [

0 commit comments

Comments
 (0)