# no-non-function-verb-prefix

Rule `unicorn/no-non-function-verb-prefix`. Disallow non-function values with function-style verb prefixes.

- Source: unicorn
- Technologies: JavaScript
- Kind: style
- Needs type information: yes
- Autofix: no
- Reach: 9.9M weekly downloads of presets that enable it
- Trend: +28.3% last quarter
- Rank: #1044 by reach, #1299 by growth

## Linters

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

## Code examples

### Incorrect: the rule reports this

```js
const getName = 'Sindre';
```

```js
const createPizza = new Pizza();
```

```ts
const {title: setTitle} = options;
```

### Correct: the rule accepts this

```js
const getName = () => 'Sindre';
```

```js
const createPizza = () => new Pizza();
```

```ts
const {setTitle} = options;
```

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-non-function-verb-prefix": "error",
    },
  },
];
```

## Presets that enable it

| Preset | Linter | Package | Rules | Weekly downloads | Trend |
| --- | --- | --- | --- | --- | --- |
| [Unicorn recommended](https://lintradar.dev/presets/unicorn-recommended.md) | ESLint | `eslint-plugin-unicorn` | 340 | 9.5M | +30.3% |
| [XO](https://lintradar.dev/presets/xo.md) | ESLint | `eslint-config-xo` | 618 | 413K | −5.0% |

## Related rules

- [unicorn/no-loop-iterable-mutation](https://lintradar.dev/rules/unicorn/no-loop-iterable-mutation.md): Disallow mutating a loop iterable during iteration.
- [unicorn/no-object-methods-with-collections](https://lintradar.dev/rules/unicorn/no-object-methods-with-collections.md): Disallow `Object` methods with `Map` or `Set`.
- [unicorn/no-leading-empty-lines](https://lintradar.dev/rules/unicorn/no-leading-empty-lines.md): Disallow empty lines at the beginning of a file.
- [unicorn/no-optional-chaining-on-undeclared-variable](https://lintradar.dev/rules/unicorn/no-optional-chaining-on-undeclared-variable.md): Disallow optional chaining on undeclared variables.
- [unicorn/no-incorrect-template-string-interpolation](https://lintradar.dev/rules/unicorn/no-incorrect-template-string-interpolation.md): Disallow incorrect template literal interpolation syntax.
- [unicorn/no-selector-as-dom-name](https://lintradar.dev/rules/unicorn/no-selector-as-dom-name.md): Disallow selector syntax in DOM names.

---

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