Appearance
Status: accepted
Date: 2026-12-04
PR: #3
Comments in code go out of date. An old comment misleads people and agents that read the code.
A local ESLint rule fails each comment in the code. The intent of the code goes in names and in docs.
Code must explain itself. Intent is in names and docs, where Vale and reviewers can check it.
eslint.config.ts
tools/eslint-plugin-no-comments/
0007: Ban code comments
Status: accepted
Date: 2026-12-04
PR: #3
Context
Comments in code go out of date. An old comment misleads people and agents that read the code.
Options considered
Decision
A local ESLint rule fails each comment in the code. The intent of the code goes in names and in docs.
Consequences
Code must explain itself. Intent is in names and docs, where Vale and reviewers can check it.
Code
eslint.config.tstools/eslint-plugin-no-comments/