From 063111956a78d85edc697047d3f9cb92f0cd4fc1 Mon Sep 17 00:00:00 2001 From: Charles Zhao Date: Thu, 27 Jan 2022 17:28:37 +0800 Subject: [PATCH] fix(eslint-config): fix padding line between statements rule (#12) --- packages/eslint-config/index.js | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/packages/eslint-config/index.js b/packages/eslint-config/index.js index b53d886..a447eae 100644 --- a/packages/eslint-config/index.js +++ b/packages/eslint-config/index.js @@ -309,10 +309,14 @@ module.exports = { * https://github.com/xojs/eslint-config-xo-typescript/blob/main/index.js#L446 */ '@typescript-eslint/no-non-null-assertion': 'error', - "padding-line-between-statements": [ + "padding-line-between-statements": "off", + "@typescript-eslint/padding-line-between-statements": [ "error", - { "blankLine": "always", "prev": "*", "next": "block-like" }, - { "blankLine": "always", "prev": "*", "next": "return" }, + { + blankLine: "always", + prev: "*", + next: ["interface", "type", "block-like", "return"] + }, ], }, parserOptions: {