TypeScript in IntelliJ
IntelliJ with Bazel

TypeScript in IntelliJ

Make sure you are using IntelliJ Ultimate Edition.

.bazelproject settings

Request TypeScript support by adding typescript to the additional_languages section. You also have to point to the rule that generated your tsconfig file using ts_config_rules.

Example: add these lines to your .bazelproject file:

additional_languages:
  javascript
  typescript

ts_config_rules:
  # substitute your own project's 'ts_config' rules here
  //com/google/project/typescript:tsconfig
  //com/google/project/testing/typescript:tsconfig

Whenever you sync we will bazel run these targets.