Pattern: Extra space in empty braces
Issue: -
Empty braces should not contain extra spaces or newlines as they reduce code readability. Keep empty braces concise without any whitespace between them.
Example of incorrect code:
const obj = { };
class A { }
Example of correct code:
const obj = {};
class A {}