Skip to content

Commit

Permalink
tools: enforce consistent spacing inside braces
Browse files Browse the repository at this point in the history
PR-URL: #14162
Reviewed-By: Vse Mozhet Byt <vsemozhetbyt@gmail.com>
Reviewed-By: Refael Ackermann <refack@gmail.com>
Reviewed-By: Timothy Gu <timothygu99@gmail.com>
Reviewed-By: James M Snell <jasnell@gmail.com>
  • Loading branch information
sebdeckers authored and jasnell committed Sep 20, 2017
1 parent 4efc6fe commit 9049f09
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
1 change: 1 addition & 0 deletions .eslintignore
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ test/addons/??_*/
test/fixtures
test/tmp*/
tools/eslint
tools/icu
node_modules
benchmark/tmp/
doc/**/*.js
7 changes: 4 additions & 3 deletions .eslintrc.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -141,16 +141,17 @@ rules:
}]
no-tabs: error
no-trailing-spaces: error
object-curly-spacing: [error, always]
one-var-declaration-per-line: error
operator-linebreak: [error, after]
quotes: [error, single, avoid-escape]
semi: error
semi-spacing: error
space-before-blocks: [error, always]
space-before-function-paren: [error, {
"anonymous": "never",
"named": "never",
"asyncArrow": "always"
anonymous: never,
named: never,
asyncArrow: always
}]
space-in-parens: [error, never]
space-infix-ops: error
Expand Down
2 changes: 0 additions & 2 deletions doc/.eslintrc.yaml
Original file line number Diff line number Diff line change
@@ -1,8 +1,6 @@
## Docs-specific linter rules

rules:
object-curly-spacing: [error, always]

# ease some restrictions in doc examples
no-restricted-properties: off
no-undef: off
Expand Down

0 comments on commit 9049f09

Please sign in to comment.