@putout/plugin-remove-duplicates-from-logical-expressions
🐊Putout plugin adds ability to find and remove duplicates from logical expressions
Last updated 2 years ago by coderaiser .
MIT · Repository · Bugs · Original npm · Tarball · package.json
$ npm install @putout/plugin-remove-duplicates-from-logical-expressions 
SYNC missed versions from official npm registry.

@putout/plugin-remove-duplicates-from-logical-expressions NPM version

🐊Putout plugin adds ability to find and remove duplicates from logical expressions. Merged to @putout/plugin-simplify-logical-expressions.

Install

npm i @putout/plugin-remove-duplicates-from-logical-expressions -D

Rule

{
    "rules": {
        "remove-duplicates-from-logical-expressions": "on"
    }
}

❌ Example of incorrect code

const t = a && b && a;

✅ Example of correct code

const t = a && b;

License

MIT

Current Tags

  • 1.0.3                                ...           latest (2 years ago)

4 Versions

  • 1.0.3                                ...           2 years ago
  • 1.0.2                                ...           2 years ago
  • 1.0.1                                ...           2 years ago
  • 1.0.0                                ...           4 years ago
Maintainers (1)
Downloads
Total 0
Today 0
This Week 0
This Month 0
Last Day 0
Last Week 0
Last Month 0
Dependencies (0)
None
Dev Dependencies (6)
Dependents (1)

© 2010 - cnpmjs.org x YWFE | Home | YWFE