Browse Source

tools: enforce consistent spacing inside braces

PR-URL: https://github.com/nodejs/node/pull/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>
v6
Sebastiaan Deckers 8 years ago
committed by Refael Ackermann
parent
commit
6add5b31fc
No known key found for this signature in database GPG Key ID: CD704BD80FDDDB64
  1. 1
      .eslintignore
  2. 7
      .eslintrc.yaml
  3. 2
      doc/.eslintrc.yaml

1
.eslintignore

@ -5,6 +5,7 @@ test/fixtures
test/disabled
test/tmp*/
tools/eslint
tools/icu
node_modules
benchmark/tmp/
doc/**/*.js

7
.eslintrc.yaml

@ -135,6 +135,7 @@ 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]
@ -142,9 +143,9 @@ rules:
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

2
doc/.eslintrc.yaml

@ -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

Loading…
Cancel
Save