[eslint config] [base] [breaking] padded-blocks: enable allowSingleLineBlocks option

This commit is contained in:
amanjain
2017-01-12 12:15:39 +05:30
committed by Jordan Harband
parent 61c7ae6189
commit 19e9ce31fe

View File

@@ -419,12 +419,12 @@ module.exports = {
'operator-linebreak': ['error', 'before', { overrides: { '=': 'none' } }],
// disallow padding within blocks
// TODO, semver-major: uncomment option
'padded-blocks': ['error', {
blocks: 'never',
classes: 'never',
switches: 'never',
// allowSingleLineBlocks: true,
}, {
allowSingleLineBlocks: true,
}],
// Require or disallow padding lines between statements