warning
key-spacingEnforces spacing around the colon in object literal properties
Examples
❌ Incorrect
const object = {
key:'value',
key :'value',
key : 'value',
};
✅ Correct
const object = {
key: 'value',
};
Enforces spacing around the colon in object literal properties
❌ Incorrect
const object = {
key:'value',
key :'value',
key : 'value',
};
✅ Correct
const object = {
key: 'value',
};