Skip to content

Commit

Permalink
feat: add padding-line-between-statements rule for lines around blocks
Browse files Browse the repository at this point in the history
  • Loading branch information
Mark Hernandez committed Jan 7, 2020
1 parent e1a5c33 commit 8df0fc4
Show file tree
Hide file tree
Showing 2 changed files with 24 additions and 0 deletions.
5 changes: 5 additions & 0 deletions .eslintrc.json
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,11 @@
],
"no-undefined": "error",
"no-var": "error",
"padding-line-between-statements": [
"error",
{ "blankLine": "always", "prev": ["block", "block-like"], "next": "*" },
{ "blankLine": "always", "prev": "*", "next": ["block", "block-like"] }
],
"quotes": [
"error",
"single",
Expand Down
19 changes: 19 additions & 0 deletions test/__snapshots__/index.test.js.snap
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,25 @@ Object {
],
"no-undefined": "error",
"no-var": "error",
"padding-line-between-statements": Array [
"error",
Object {
"blankLine": "always",
"next": "*",
"prev": Array [
"block",
"block-like",
],
},
Object {
"blankLine": "always",
"next": Array [
"block",
"block-like",
],
"prev": "*",
},
],
"quotes": Array [
"error",
"single",
Expand Down

0 comments on commit 8df0fc4

Please sign in to comment.