# no-manually-wrapped-comments

Rule `unicorn/no-manually-wrapped-comments`. Disallow manually wrapped comments.

- Source: unicorn
- Technologies: JavaScript
- Kind: style
- Needs type information: no
- Autofix: yes, in at least one linter
- Reach: 0 weekly downloads of presets that enable it
- Trend: 0% last quarter
- Rank: #2016 by reach

## Linters

| Linter | Rule name | Recommended | Autofix | Details | Docs |
| --- | --- | --- | --- | --- | --- |
| ESLint | `unicorn/no-manually-wrapped-comments` | no | safe | package `eslint-plugin-unicorn` | [docs](https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v80.0.0/docs/rules/no-manually-wrapped-comments.md) |

## Code examples

### Incorrect: the rule reports this

```js
// This is a long comment but
// I don't like long lines
```

```js
/**
 * This is a long comment but
 * I don't like long lines
 */
```

### Correct: the rule accepts this

```js
// This is a long comment but I don't like long lines
```

```js
// This is a long comment.
// I don't like long lines.
```

```js
/**
 * This is a long comment but I don't like long lines
 */
```

Examples from the ESLint documentation.

## Enable it

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

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

export default [
  {
    plugins: { unicorn },
    rules: {
      "unicorn/no-manually-wrapped-comments": "error",
    },
  },
];
```

## Related rules

- [unicorn/no-keyword-prefix](https://lintradar.dev/rules/unicorn/no-keyword-prefix.md): Disallow identifiers starting with `new` or `class`.
- [unicorn/no-missing-local-resource](https://lintradar.dev/rules/unicorn/no-missing-local-resource.md): Disallow references to missing local resources.
- [unicorn/no-repeated-call-wrappers](https://lintradar.dev/rules/unicorn/no-repeated-call-wrappers.md): Disallow repeating the same wrapper at every call to a function.
- [unicorn/no-barrel-files](https://lintradar.dev/rules/unicorn/no-barrel-files.md): Disallow barrel files.
- [unicorn/no-unnecessary-default-arguments](https://lintradar.dev/rules/unicorn/no-unnecessary-default-arguments.md): Disallow arguments that match their parameter defaults.
- [unicorn/no-array-front-mutation](https://lintradar.dev/rules/unicorn/no-array-front-mutation.md): Disallow front-of-array mutation.

---

Web page: https://lintradar.dev/rules/unicorn/no-manually-wrapped-comments. Data from npm and the linters' documentation, collected Dec 4, 2026. Site guide for agents: https://lintradar.dev/llms.txt
