Description
TypeDoc supports module level comments which document a file rather than a specific member of the file, but only if there are two doc comments before the first node in the file.
/** Module doc */
/** Function doc */
const noop = () => {}
This rule also applies to import statements, but users likely expect comments attached to them to be applied to the file. I don't think it makes sense to add (another) special case for module comments, but it would be nice to warn the user that they added a comment to an import declaration at the start of a file that looks like it might have been intended to be a module comment.
/** NOT a module doc */
import 'test'
const noop = () => {}
This warning should not appear when there is one comment before a node that is commonly documented. Right now I think the only nodes it should warn on are import
statements.