Last active
October 19, 2021 13:06
-
-
Save jayu/abd97fbdab580f7f0ccb5b6e7e9f07a1 to your computer and use it in GitHub Desktop.
padding-line-between-statements nice config
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"rules" : { | |
"padding-line-between-statements": [ | |
"error", | |
{ "blankLine": "always", "prev": "block-like", "next": "*" }, // padding after code block | |
{ "blankLine": "always", "prev": "*", "next": "return" }, // padding before return | |
{ "blankLine": "always", "prev": "*", "next": "if" }, // padding before if statement | |
{ "blankLine": "always", "prev": "*", "next": "for" }, // padding before for loop | |
{ "blankLine": "always", "prev": "*", "next": "function" }, // padding before function | |
{ "blankLine": "always", "prev": "*", "next": "export" }, // padding before export | |
{ "blankLine": "always", "prev": "*", "next": "multiline-expression" }, // padding before multiline-expression | |
{ "blankLine": "always", "prev": "multiline-expression", "next": "*" } // padding after multiline-expression | |
] | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment