> For AI agents: the complete documentation index is available at https://rslint.rs/llms.txt, the full documentation bundle is available at https://rslint.rs/llms-full.txt.

# no-new-native-nonconstructor

[Added in v0.6.5](https://github.com/web-infra-dev/rslint/releases/tag/v0.6.5)
## Configuration

| Preset                   | Configured Value |
| ------------------------ | ---------------- |
| ✅ js.configs.recommended | `"error"`        |


```ts title=rslint.config.ts
import { defineConfig, js } from '@rslint/core';

export default defineConfig([
  js.configs.recommended,
  {
    rules: {
      'no-new-native-nonconstructor': 'error',
    },
  },
]);
```

## Rule Details

Disallows using the `new` operator with native global functions that are not constructors.

Examples of **incorrect** code for this rule:

```javascript
const foo = new Symbol('foo');
const bar = new BigInt(9007199254740991);
```

Examples of **correct** code for this rule:

```javascript
const foo = Symbol('foo');
const bar = BigInt(9007199254740991);

function baz(Symbol) {
  const qux = new Symbol('baz');
}

const SymbolCtor = Symbol;
new SymbolCtor();
```

## Original Documentation

- [ESLint: no-new-native-nonconstructor](https://eslint.org/docs/latest/rules/no-new-native-nonconstructor)
- [Source code](https://github.com/eslint/eslint/blob/v10.8.1/lib/rules/no-new-native-nonconstructor.js)
