# require-file-overview

Rule `jsdoc/require-file-overview`. Checks that all files have one `@file`, `@fileoverview`, or `@overview` tag at the beginning of the file.

- Source: jsdoc
- Technologies: JSDoc
- Kind: style
- Needs type information: no
- Autofix: no
- Reach: 0 weekly downloads of presets that enable it
- Trend: 0% last quarter
- Rank: #2104 by reach

## Linters

| Linter | Rule name | Recommended | Autofix | Details | Docs |
| --- | --- | --- | --- | --- | --- |
| ESLint | `jsdoc/require-file-overview` | no | no | package `eslint-plugin-jsdoc` | [docs](https://github.com/gajus/eslint-plugin-jsdoc/blob/main/docs/rules/require-file-overview.md#repos-sticky-header) |

## Code examples

### Incorrect: the rule reports this

```ts
// Message: Missing @file
```

### Correct: the rule accepts this

```ts
/**
 * @file
 */
```

Examples from the ESLint documentation.

## Enable it

### ESLint: `eslint.config.js`

```js
import jsdoc from "eslint-plugin-jsdoc";

export default [
  {
    plugins: { jsdoc },
    rules: {
      "jsdoc/require-file-overview": "error",
    },
  },
];
```

## Related rules

- [jsdoc/require-example](https://lintradar.dev/rules/jsdoc/require-example.md): Requires that all functions (and potentially other contexts) have examples.
- [jsdoc/require-hyphen-before-param-description](https://lintradar.dev/rules/jsdoc/require-hyphen-before-param-description.md): Requires a hyphen before the `@param` description (and optionally before `@property` descriptions).
- [jsdoc/require-description-complete-sentence](https://lintradar.dev/rules/jsdoc/require-description-complete-sentence.md): Requires that block description, explicit `@description`, and `@param`/`@returns` tag descriptions are written in complete sentences.
- [jsdoc/require-next-description](https://lintradar.dev/rules/jsdoc/require-next-description.md): Requires a description for `@next` tags
- [jsdoc/prefer-import-tag](https://lintradar.dev/rules/jsdoc/prefer-import-tag.md): Prefer `@import` tags to inline `import()` statements.
- [jsdoc/require-rejects](https://lintradar.dev/rules/jsdoc/require-rejects.md): Requires that Promise rejections are documented with `@rejects` tags.

---

Web page: https://lintradar.dev/rules/jsdoc/require-file-overview. Data from npm and the linters' documentation, collected Dec 4, 2026. Site guide for agents: https://lintradar.dev/llms.txt
