ts-config-plugin

Auto completion / error-checking in webpack.config.js and other JavaSscript based configs

Usage no npm install needed!

<script type="module">
  import tsConfigPlugin from 'https://cdn.skypack.dev/ts-config-plugin';
</script>

README

TS Config Plugin

Just install the VS Code extension.

Or, yarn add ts-config-plugin and put this in tsconfig:

{
  "compilerOptions": {
    "plugins": [
      { "name": "ts-config-plugin" }
    ]
  }
}

Demo

demo

Supported Configs

  • webpack.config.js
  • .eslintrc.js
  • prettier.config.js / .prettierrc.js

Notes

  • 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.