> 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-misused-new

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

| Preset                              | Configured Value |
| ----------------------------------- | ---------------- |
| ✅ ts.configs.recommended            | `"error"`        |
| ✅ ts.configs.recommendedTypeChecked | `"error"`        |
| ✅ ts.configs.strict                 | `"error"`        |
| ✅ ts.configs.strictTypeChecked      | `"error"`        |


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

export default defineConfig([
  ts.configs.recommended,
  {
    rules: {
      '@typescript-eslint/no-misused-new': 'error',
    },
  },
]);
```

## Rule Details

Disallows incorrect usage of `new` and `constructor` in interfaces and classes. Interfaces define the shape of objects but cannot be constructed directly; defining a `new()` construct signature in an interface that returns the interface type or a `constructor` method signature is almost always a mistake. Similarly, classes should not have a method literally named `new` that returns the class type, as the `constructor` keyword should be used instead.

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

```typescript
interface Foo {
  new (): Foo;
}

interface Bar {
  constructor(): Bar;
}

class Baz {
  new(): Baz;
}
```

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

```typescript
class Foo {
  constructor() {}
}

interface Bar {
  new (): SomeOtherClass;
}

interface Baz {
  method(): void;
}
```

## Original Documentation

- [typescript-eslint: no-misused-new](https://typescript-eslint.io/rules/no-misused-new)
- [Source code](https://github.com/typescript-eslint/typescript-eslint/blob/v8.67.0/packages/eslint-plugin/src/rules/no-misused-new.ts)
