Closed Pareder closed 2 years ago
Added rule to eslint that requires the padding line after block-like statements (if, for, while, etc.). It makes code more readable, especially when there are a lot of block statements one after another.
if
for
while
// Wrong if(true) { // code } for(let i = 0; i < 100; i++) { // code } while(true) { // code }
// Correct if(true) { // code } for(let i = 0; i < 100; i++) { // code } while(true) { // code }
Added rule to eslint that requires the padding line after block-like statements (
if
,for
,while
, etc.). It makes code more readable, especially when there are a lot of block statements one after another.