Skip to content
This repository was archived by the owner on Jul 15, 2023. It is now read-only.
This repository was archived by the owner on Jul 15, 2023. It is now read-only.

5.0.2 gives warning about deprecated rules #410

@rbirkgit

Description

@rbirkgit

Using tslint with 5.0.2 I get this:

Warning: no-duplicate-case rule is deprecated. Replace your usage with the TSLint no-duplicate-switch-case rule.
Warning: no-var-self rule is deprecated. Replace your usage with the TSLint no-this-assignment rule.
Warning: valid-typeof rule is deprecated. Replace your usage with the TSLint typeof-compare rule.

Seems these rules were removed in the main part of the recommended rules set, but then they are turned on again at the end:

    /**
     * Deprecated rules.  The following rules are deprecated for various reasons.
     */
    "missing-optional-annotation": false,  // now supported by TypeScript compiler
    "no-duplicate-case": true,
    "no-duplicate-parameter-names": false, // now supported by TypeScript compiler
    "no-empty-interfaces": false, // use tslint no-empty-interface rule instead
    "no-missing-visibility-modifiers": false, // use tslint member-access rule instead
    "no-multiple-var-decl": false,         // use tslint one-variable-per-declaration rule instead
    "no-stateless-class": true,
    "no-switch-case-fall-through": false,  // now supported by TypeScript compiler
    "no-var-self": true,
    "react-tsx-curly-spacing": true,
    "typeof-compare": false,               // the valid-typeof rule is currently superior to this version
    "valid-typeof": true,

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions