🚀 Big News: Socket Acquires Coana to Bring Reachability Analysis to Every Appsec Team.Learn more
Socket
Sign inDemoInstall
Socket

@putout/plugin-convert-const-to-let

Package Overview
Dependencies
Maintainers
0
Versions
14
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@putout/plugin-convert-const-to-let

🐊Putout plugin adds ability to convert 'const' to 'let'

4.2.0
latest
Source
npm
Version published
Maintainers
0
Created
Source

@putout/plugin-convert-const-to-let NPM version

The TypeError object represents an error when attempting to modify a value that cannot be changed.

(c) MDN

🐊Putout plugin adds ability to convert const to let to avoid TypeError. Check out in 🐊Putout Editor.

Install

npm i @putout/plugin-convert-const-to-let -D

Rule

{
    "rules": {
        "convert-const-to-let": "on"
    }
}

❌ Example of incorrect code

const a = 5;

a = 3;

✅ Example of correct code

let a = 5;

a = 3;

License

MIT

Keywords

putout

FAQs

Package last updated on 18 Jan 2025

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts