Skip to content

Option to require a comment under @file tag #927

@claudiu-cristea

Description

@claudiu-cristea

Motivation

With require-file-overview rule we're able to enforce a @file tag for each JS file. However, this could not be enough for some projects. I want to be able to enforce also a comment just after the @file tag:

/**
 * @file
 * Relevant description about what this file is doing.
 */

Current behavior

This doc block is valid:

/**
 * @file
 */

Desired behavior

I would like to have an option that enforces this:

/**
 * @file
 * Relevant description about what this file is doing.
 */

Alternatives considered

N/A

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions