Skip to content

Commit

Permalink
Require space before async when declaring function.
Browse files Browse the repository at this point in the history
  • Loading branch information
haensl committed Nov 22, 2018
1 parent 31fdaa7 commit c2c67bc
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 2 deletions.
3 changes: 3 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
## 1.2.0
* Require space after `async` when declaring functions.

## 1.1.0
* Update object-curly-newline rule.
* Update indent rule.
Expand Down
6 changes: 5 additions & 1 deletion index.js
Original file line number Diff line number Diff line change
Expand Up @@ -139,7 +139,11 @@ module.exports = {
],
'space-before-function-paren': [
'error',
'never'
{
'anonymous': 'never',
'named': 'never',
'asyncArrow': 'always'
}
],
'space-in-parens': [
'error',
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@haensl/eslint-config",
"version": "1.1.0",
"version": "1.2.0",
"description": "Default ESLint configuration of HP Dietz.",
"main": "index.js",
"publishConfig": {
Expand Down

0 comments on commit c2c67bc

Please sign in to comment.