This is a TypeScript plugin for Vanilla JS.
pnpm i -D @dxup/vanillaOr you can install the VS Code extension for easier setup:
code --install-extension KazariEX.dxupAdd the following to your tsconfig.json:
{
"compilerOptions": {
"plugins": [
{ "name": "@dxup/vanilla" }
]
}
}-
Go to definition for signature parameters.
export default defineConfig({ plugins: [{ name: "testify", transform(code, id, options) { // ^^^^^^^ }, }], });
-
Rewrite refactor for signature parameters.
function swap(foo: number, bar: string, baz: boolean, qux: symbol) {} // ^^^ Refactor > Move parameter right swap(2, "3", true, Symbol(5));