@putout/plugin-remove-duplicates-from-logical-expressions
🐊Putout plugin adds ability to find and remove duplicates from logical expressions
Last updated 4 years ago by coderaiser .
MIT · Repository · Bugs · Original npm · Tarball · package.json
$ cnpm 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 (4 years ago)

4 Versions

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

Copyright 2013 - present © cnpmjs.org | Home |