Auto completion / error-checking in webpack.config.js and other JavaSscript based configs
npm install ts-config-pluginJust install the VS Code extension.
Or, yarn add ts-config-plugin and put this in tsconfig:
``json``
{
"compilerOptions": {
"plugins": [
{ "name": "ts-config-plugin" }
]
}
}
!demo
- [x] webpack.config.js
- [ ] .eslintrc.js
- [ ] prettier.config.js / .prettierrc.js
- The plugin only handles completion / diagnostics.
- This plugin is quite slow. I do hope it can be faster, but that needs more API from TypeScript.
- It's mainly for trying out TS Plugin, so I can use it for Vetur to build better typing experience for Vue 2 and the upcoming Vue 3.