Skip to content

lintofuLint OpenTofu with ESLint

An ESLint language plugin that parses .tf and .tofu with HashiCorp's own hcl/v2, so OpenTofu conventions are enforced by the linter you already run.

Where to go next ​

  • User guide: install lintofu, wire it into eslint.config.js, and pick a config tier.
  • Rules: every shipped rule with its description, severity, category, recommended flag, and whether it autofixes. Generated from rule metadata.
  • Developer guide: how the parser is built, what parser services rules can reach for, and how to write a rule of your own.

Pre-1.0. The API and the rule set may still change. See ADR 0001 for why the project stays on 0.x.