Skip to content

Commit

Permalink
Disallow padding within switch statements and classes (padded-blocks)
Browse files Browse the repository at this point in the history
Currently, we disallow empty lines at the beginning and ending of block
statements (except switch statements and classes).

This rule change also applies this rule to switch statements and
classes.

Fixes: standard/standard#610
  • Loading branch information
feross committed Feb 9, 2017
1 parent 7b937c1 commit 16f5606
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion eslintrc.json
Expand Up @@ -138,7 +138,7 @@
"object-property-newline": ["error", { "allowMultiplePropertiesPerLine": true }],
"one-var": ["error", { "initialized": "never" }],
"operator-linebreak": ["error", "after", { "overrides": { "?": "before", ":": "before" } }],
"padded-blocks": ["error", "never"],
"padded-blocks": ["error", { "blocks": "never", "switches": "never", "classes": "never" }],
"prefer-promise-reject-errors": "error",
"quotes": ["error", "single", { "avoidEscape": true, "allowTemplateLiterals": true }],
"rest-spread-spacing": ["error", "never"],
Expand Down

0 comments on commit 16f5606

Please sign in to comment.