POC TS Plugin for type checking / completing `module.exports`
Clone or download
Latest commit e088dd6 Jan 11, 2019
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
src Disable plugin for non webpack.config.js files Jan 11, 2019
vsc update vsc version Jan 11, 2019
.gitignore Publishing related stuff Jan 9, 2019
.npmignore ignore vsc package on npm Jan 9, 2019
README.md Update readme Jan 11, 2019
package.json build Jan 11, 2019
tsconfig.json deps hack Jan 9, 2019
yarn.lock cleanup deps Jan 9, 2019

README.md

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.