eslint-plugin-sonarjs
Version:
SonarJS rules for ESLint
20 lines (11 loc) ⢠517 B
Markdown
# sonarjs/new-operator-misuse
š "new" should only be used with functions and classes.
š¼ This rule is enabled in the ā
`recommended` config.
š This rule requires [type information](https://typescript-eslint.io/linting/typed-linting).
<!-- end auto-generated rule header -->
## Options
<!-- begin auto-generated rule options list -->
| Name | Type | Default |
| :-------------- | :------ | :------ |
| `considerJSDoc` | Boolean | `false` |
<!-- end auto-generated rule options list -->