@putout/plugin-convert-equal-to-strict-equal
🐊Putout plugin adds ability to convert equal to strict equal
Last updated 3 years ago by coderaiser .
MIT · Repository · Bugs · Original npm · Tarball · package.json
$ cnpm install @putout/plugin-convert-equal-to-strict-equal 
SYNC missed versions from official npm registry.

@putout/plugin-convert-equal-to-strict-equal NPM version

The strict equality operator (===) checks whether its two operands are equal, returning a Boolean result. Unlike the equality operator (==), the strict equality operator always considers operands of different types to be different.

(c) MDN

????Putout plugin adds ability to convert equal to strict equal operator. Merged to @putout/plugin-conditions.

Install

npm i @putout/plugin-convert-equal-to-strict-equal -D

Rule

{
    "rules": {
        "convert-equal-to-strict-equal": "off"
    }
}

❌ Example of incorrect code

if (a == b) {
}

✅ Example of correct code

if (a === b) {
}

License

MIT

Current Tags

  • 1.1.1                                ...           latest (3 years ago)

3 Versions

  • 1.1.1                                ...           3 years ago
  • 1.1.0                                ...           6 years ago
  • 1.0.0                                ...           6 years ago
Maintainers (1)
Downloads
Today 0
This Week 0
This Month 0
Last Day 0
Last Week 0
Last Month 1
Dependencies (0)
None
Dev Dependencies (6)
Dependents (1)

Copyright 2013 - present © cnpmjs.org | Home |