# no-native

Rule `promise/no-native`. Require creating a `Promise` constructor before using it in an ES5 environment.

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

## Linters

| Linter | Rule name | Recommended | Autofix | Details | Docs |
| --- | --- | --- | --- | --- | --- |
| ESLint | `promise/no-native` | no | no | package `eslint-plugin-promise` | [docs](https://github.com/eslint-community/eslint-plugin-promise/blob/main/docs/rules/no-native.md) |

## Code examples

### Incorrect: the rule reports this

```js
const x = Promise.resolve('bad')
```

### Correct: the rule accepts this

```js
const Promise = require('bluebird')
const x = Promise.resolve('good')
```

Examples from the ESLint documentation.

## Enable it

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

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

export default [
  {
    plugins: { promise },
    rules: {
      "promise/no-native": "error",
    },
  },
];
```

## Related rules

- [promise/prefer-await-to-then](https://lintradar.dev/rules/promise/prefer-await-to-then.md): Prefer `await` to `then()`/`catch()`/`finally()` for reading Promise values.
- [promise/spec-only](https://lintradar.dev/rules/promise/spec-only.md): Disallow use of non-standard Promise static methods.
- [promise/prefer-await-to-callbacks](https://lintradar.dev/rules/promise/prefer-await-to-callbacks.md): Prefer `async`/`await` to the callback pattern.
- [promise/prefer-catch](https://lintradar.dev/rules/promise/prefer-catch.md): Prefer `catch` to `then(a, b)`/`then(null, b)` for handling errors.
- [promise/no-multiple-resolved](https://lintradar.dev/rules/promise/no-multiple-resolved.md): Disallow creating new promises with paths that resolve multiple times.
- [promise/avoid-new](https://lintradar.dev/rules/promise/avoid-new.md): Disallow creating `new` promises outside of utility libs (use [util.promisify][] instead).

---

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