Skip to content

Tooling tour

Goal: Know the core superjs subcommands.

CommandPurpose
checkType-check without emit
buildCompile to JS
lintStyle rules SJS-L*
formatCanonical formatting
doc / docgenAPI docs from exports
initScaffold project templates
lspLanguage server (stdio)

Example

// Typical loop
// superjs check src/**/*.sjs
// superjs lint src/**/*.sjs
// superjs build src --out-dir dist

Open in playground

Key takeaways

  • Run check in CI on every PR.
  • format --check prevents style drift.
  • LSP powers editor diagnostics.

Next: Migrating a TS file

Documentation