From 89445a55aff6920bb4af00c58c22f401752a6927 Mon Sep 17 00:00:00 2001 From: Konstantinos Paparas Date: Mon, 10 Jul 2023 22:06:27 +0200 Subject: [PATCH] feat: introduce padding-line-between-statements rule --- packages/basic/index.js | 9 +++++++++ packages/typescript/index.js | 10 ++++++++++ 2 files changed, 19 insertions(+) diff --git a/packages/basic/index.js b/packages/basic/index.js index bcf11f8..2826067 100644 --- a/packages/basic/index.js +++ b/packages/basic/index.js @@ -285,5 +285,14 @@ module.exports = defineConfig({ // extras curly: ['error', 'all'], 'arrow-body-style': ['error', 'as-needed'], + + 'padding-line-between-statements': [ + 'error', + { + blankLine: 'always', + prev: '*', + next: ['class', 'function', 'export'], + }, + ], }, }); diff --git a/packages/typescript/index.js b/packages/typescript/index.js index b29a1d5..cbd95bf 100644 --- a/packages/typescript/index.js +++ b/packages/typescript/index.js @@ -148,5 +148,15 @@ module.exports = defineConfig({ ignoreTypeImports: false, }, ], + + 'padding-line-between-statements': 'off', + '@typescript-eslint/padding-line-between-statements': [ + 'error', + { + blankLine: 'always', + prev: '*', + next: ['interface', 'type', 'class', 'function', 'export'], + }, + ], }, });