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

@putout/plugin-remove-duplicates-from-union NPM version

putout plugin adds ability to find and remove duplicates from union (for typescript).

Install

npm i @putout/plugin-remove-duplicates-from-union -D

Rule

{
    "rules": {
        "remove-duplicates-from-union": "on"
    }
}

❌ Incorrect code example

type x = boolean[] | A | string | A | string[] | boolean[];

✅ Correct code Example

type x = boolean[] | A | string | string[];

License

MIT

Current Tags

  • 1.0.2                                ...           latest (4 years ago)

3 Versions

  • 1.0.2                                ...           4 years ago
  • 1.0.1                                ...           4 years ago
  • 1.0.0                                ...           4 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 |