- Notifications
You must be signed in to change notification settings - Fork14
TypeScript Plugins
Angelo edited this pageApr 21, 2017 ·3 revisions
Language Service Plugins with Proxies isplanned for TypeScript 2.3. This feature gives the capability to extend TypeScript tsserver completion, definition, diagnostics, etc with custom plugins. Today it exists 2 plugins :
- Angular2 language service which provide completion, definition, diagnostics for @Component/template
- tslint language service which provides diagnostics, codefix by consumingtslint.
Here the step to enable tslint:
- activatetsserver-plugins if you are consuming TypeScript < 2.2.1.

thenode_modules of your TypeScript Runtime must containtslint andtslint language service like thisnode_modules. If you are consuming last version of embedded TypeScript, it will work directly.
declare your tsconfig.json like this:
{"compilerOptions": {"plugins": [ {"name":"tslint-language-service"} ] }}After you will benefit with tslint:
- when you are
typingin the editor and benefit too withquick fixes. - when youcompile TypeScript
Here a demo with tslint:

- TypeScript IDE
- New and Noteworthy