5.1.0 β€’ Published 3 months ago

@putout/plugin-remove-duplicate-keys v5.1.0

Weekly downloads
2,542
License
MIT
Repository
github
Last release
3 months ago

@putout/plugin-remove-duplicate-keys NPM version

An object initializer is a comma-delimited list of zero or more pairs of property names and associated values of an object, enclosed in curly braces ({}).

(c) MDN

🐊Putout plugin adds ability to find and remove duplecate keys.

Install

npm i @putout/plugin-remove-duplicate-keys

Rule

{
    "rules": {
        "remove-duplicate-keys": "on"
    }
}

❌ Example of incorrect code

const a = {
    x: 'hello',
    ...z,
    x: 'world',
};

βœ… Example of correct code

const a = {
    ...z,
    x: 'world',
};

License

MIT

5.1.0

3 months ago

5.0.0

3 months ago

4.1.0

5 months ago

4.0.0

5 months ago

3.0.0

2 years ago

2.1.0

3 years ago

2.0.0

4 years ago

1.1.0

4 years ago

1.0.0

4 years ago