Skip to content

Commit

Permalink
Add option to the padded-block rule
Browse files Browse the repository at this point in the history
  • Loading branch information
sindresorhus committed Mar 4, 2019
1 parent c2f93ed commit 132d420
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 4 deletions.
5 changes: 4 additions & 1 deletion index.js
Original file line number Diff line number Diff line change
Expand Up @@ -362,7 +362,10 @@ module.exports = {
],
'padded-blocks': [
'error',
'never'
'never',
{
allowSingleLineBlocks: false
}
],
'padding-line-between-statements': [
'error',
Expand Down
6 changes: 3 additions & 3 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -50,12 +50,12 @@
"simple"
],
"devDependencies": {
"ava": "^1.0.1",
"eslint": "^5.11.1",
"ava": "^1.2.1",
"eslint": "^5.15.0",
"is-plain-obj": "^1.0.0",
"temp-write": "^3.1.0"
},
"peerDependencies": {
"eslint": ">=5.11.1"
"eslint": ">=5.14.0"
}
}

0 comments on commit 132d420

Please sign in to comment.