Skip to content

Commit 673f411

Browse files
committed
feat(format): add format command and default formatter setting
1 parent d201a82 commit 673f411

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

package.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -134,6 +134,7 @@
134134
"build-plugin": "node buildTsPlugin.mjs && node buildTsPlugin.mjs --browser",
135135
"build-plugin:npm": "tsc -p typescript/tsconfig.npm.json",
136136
"lint": "eslint {src/**,typescript/src/**}",
137+
"format": "prettier --write '{src,typescript}/**/*.ts' --ignore-path .gitignore",
137138
"test": "pnpm test-plugin --run && pnpm integration-test",
138139
"test-plugin": "vitest --globals --dir typescript/test/ --environment ts-plugin",
139140
"integration-test": "node integration/prerun.mjs && tsc -p tsconfig.test.json && node testsOut/runTests.js",
@@ -231,4 +232,4 @@
231232
}
232233
},
233234
"packageManager": "[email protected]+sha512.f0dda8580f0ee9481c5c79a1d927b9164f2c478e90992ad268bbb2465a736984391d6333d2c327913578b2804af33474ca554ba29c04a8b13060a717675ae3ac"
234-
}
235+
}

src/extension.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -141,4 +141,4 @@ export const activate = async () => {
141141
disposables,
142142
)
143143
}
144-
}
144+
}

0 commit comments

Comments
 (0)