[READ-ONLY] Mirror of https://github.com/lion-byte/eslint-config. ESLint config for personal projects
eslint-config personal-config
0

Configure Feed

Select the types of activity you want to include in your feed.

feat: add padding-line-between-statements rule for lines around blocks

Mark Hernandez (Jan 7, 2020, 12:46 PM -0600) 8df0fc40 e1a5c33d

+24
+5
.eslintrc.json
··· 21 21 ], 22 22 "no-undefined": "error", 23 23 "no-var": "error", 24 + "padding-line-between-statements": [ 25 + "error", 26 + { "blankLine": "always", "prev": ["block", "block-like"], "next": "*" }, 27 + { "blankLine": "always", "prev": "*", "next": ["block", "block-like"] } 28 + ], 24 29 "quotes": [ 25 30 "error", 26 31 "single",
+19
test/__snapshots__/index.test.js.snap
··· 38 38 ], 39 39 "no-undefined": "error", 40 40 "no-var": "error", 41 + "padding-line-between-statements": Array [ 42 + "error", 43 + Object { 44 + "blankLine": "always", 45 + "next": "*", 46 + "prev": Array [ 47 + "block", 48 + "block-like", 49 + ], 50 + }, 51 + Object { 52 + "blankLine": "always", 53 + "next": Array [ 54 + "block", 55 + "block-like", 56 + ], 57 + "prev": "*", 58 + }, 59 + ], 41 60 "quotes": Array [ 42 61 "error", 43 62 "single",