-
-
Notifications
You must be signed in to change notification settings - Fork 2.3k
Closed
Labels
Milestone
Description
As of now, the padded-blocks rule is configured as:
"padded-blocks": [2, "never"],
Since:
"always" requires empty lines at the beginning and ending of block statements (except
switchstatements and classes)
"never" disallows empty lines at the beginning and ending of block statements
And this implies that in classes and switch statements the never-padded-blocks is not enforced, wouldn't it be coherent to modify the rule as this?
"padded-blocks": [2, { "blocks": "never", "switches": "never", "classes": "never" }],
Here is the reference: http://eslint.org/docs/rules/padded-blocks#classes
tunnckoCore
Metadata
Metadata
Assignees
Labels
Type
Projects
Status
Done