← Back

key-spacing warning

Enforces spacing around the colon in object literal properties

Examples

❌  Incorrect

const object = {
    key:'value',
    key :'value',
    key : 'value',
};

✅  Correct

const object = {
    key: 'value',
};