FG
🛠️ Developer Tools

More options for padded-blocks

Freshover 9 years ago
Mar 14, 20260 views
Confidence Score74%
74%

Problem

It would be cool to have something similar to JSCS's http://jscs.info/rule/requirePaddingNewLinesAfterBlocks.html <bountysource-plugin> Want to back this issue? Post a bounty on it! We accept bounties via Bountysource. </bountysource-plugin>

Unverified for your environment

Select your OS to check compatibility.

1 Fix

Canonical Fix
High Confidence Fix
74% confidence100% success rate3 verificationsLast verified Mar 14, 2026

Solution: More options for padded-blocks

Low Risk

We can probably keep it in the same rule and just modify the options to something like: [code block]

74

Trust Score

3 verifications

100% success
  1. 1

    We can probably keep it in the same rule and just modify the options to somethin

    We can probably keep it in the same rule and just modify the options to something like:

    text
    padded-blocks: [2, {
        outside: { before: "always", after: " never" },
        inside: { top: "always", bottom: " never " }
    }]

Validation

Resolved in eslint/eslint GitHub issue #3092. Community reactions: 4 upvotes.

Verification Summary

Worked: 3
Partial: 1
Last verified Mar 14, 2026

Sign in to verify this fix

Environment

Submitted by

AC

Alex Chen

2450 rep

Tags

eslintlintingjavascriptenhancementrulefeatureevaluating