ESLint plugin
This project is maintained by iliubinskii
ESLint plugin / switch-case-spacing
Ensures consistent empty lines between switch case statements.
module.exports = {
plugins: ["misc"],
rules: {
"misc/switch-case-spacing": "error"
}
};
switch (x) {
case 1:
case 2:
break;
case 3:
}
switch (x) {
case 1:
case 2:
break;
case 3:
}