Namby Pamby Magicians

    eslint-plugin-no-useless-const

    1.0.1 • Public • Published

    no-useless-const

    Unless you live under a rock, you've heard that const is useless. Now you can enforce the use of let instead.

    Rule Details

    👎 Examples of incorrect code for this rule:

    const abc = 123; // ERROR!

    👍 Examples of correct code for this rule:

    let abc = 123;

    Usage

    1. Add "no-useless-const" to the "plugins" key in your eslint config.
    2. Add "no-useless-const/no-useless-const": "error" to the "rules" key in your eslint config.

    Install

    npm i eslint-plugin-no-useless-const

    DownloadsWeekly Downloads

    7

    Version

    1.0.1

    License

    ISC

    Unpacked Size

    2.41 kB

    Total Files

    4

    Last publish

    Collaborators

    • p7g