Skip to content

@typescript-eslint/no-useless-constructor won't turn off. #873

Closed
@gpresland

Description

@gpresland

What code were you trying to parse?

  constructor() {
    super();
  }

with .eslintrc.js

  rules: {
    "no-useless-constructor": "off",
    "@typescript-eslint/no-useless-constructor": false
  }

and tslint.json

  "jsRules": {
    "no-useless-constructor": "off",
    "@typescript-eslint/no-useless-constructor": false
  },
  "rules": {
    "no-useless-constructor": "off",
    "@typescript-eslint/no-useless-constructor": false
  },

along with every value combinations off "off", false, and 0.

Documentation followed at:

https://github.com/typescript-eslint/typescript-eslint/blob/master/packages/eslint-plugin/docs/rules/no-useless-constructor.md

What did you expect to happen?

Expect to receive no warnings for useless constructors.

What actually happened?

Compiled with warnings.

Line 31:  Useless constructor  @typescript-eslint/no-useless-constructor

Versions

package version
@typescript-eslint/eslint-plugin-tslint 1.6.0
@typescript-eslint/parser 1.6.0
TypeScript 3.5.2
ESLint 5.16.0
node 10.16.0
npm 6.9.0

Metadata

Metadata

Assignees

No one assigned

    Labels

    package: eslint-pluginIssues related to @typescript-eslint/eslint-pluginworking as intendedIssues that are closed as they are working as intended

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions