From 1fe0ac9842d8aea6295cecd15e1aa25ca6b2061a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Micha=C5=82=20Paczy=C5=84ski?= Date: Wed, 26 Jun 2024 11:40:41 +0200 Subject: [PATCH] Add rule to enforce whitespaces in multiline variables --- index.js | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/index.js b/index.js index 563b815..576eeef 100644 --- a/index.js +++ b/index.js @@ -91,6 +91,20 @@ module.exports = { // .only tests being committed are typically a mistake "no-only-tests/no-only-tests": "error", "prettier/prettier": ["error", thesisPrettierConfig], + // Enforces whitespaces before and after multiline variables + "padding-line-between-statements": [ + "error", + { + blankLine: "always", + prev: "*", + next: ["multiline-const", "multiline-let", "multiline-var"], + }, + { + blankLine: "always", + prev: ["multiline-const", "multiline-let", "multiline-var"], + next: "*", + }, + ], }, overrides: [ {