Skip to content

Commit

Permalink
tools: enable space-after-keywords in eslint
Browse files Browse the repository at this point in the history
Requires that you do:

  if (x) { ... }

Rather than:

  if(x) { ... }
  • Loading branch information
brendanashworth committed Aug 23, 2015
1 parent 8af5962 commit 96a2b2d
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions .eslintrc
Original file line number Diff line number Diff line change
Expand Up @@ -66,6 +66,8 @@ rules:
eol-last: 2
## no trailing spaces
no-trailing-spaces: 2
# require space after keywords, eg 'for (..)'
space-after-keywords: 2

# Strict Mode
# list: https://github.com/eslint/eslint/tree/master/docs/rules#strict-mode
Expand Down

1 comment on commit 96a2b2d

@brendanashworth
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I missed this, sorry about that:

PR-URL: https://github.com/nodejs/node/pull/2430
Reviewed-By: Colin Ihrig <[email protected]>
Reviewed-By: Michaël Zasso <[email protected]>
Reviewed-By: Ben Noordhuis <[email protected]>

Please sign in to comment.