From 6add5b31fcc4ae45a8603f886477c544a99e0188 Mon Sep 17 00:00:00 2001 From: Sebastiaan Deckers Date: Mon, 10 Jul 2017 20:54:06 -0400 Subject: [PATCH] tools: enforce consistent spacing inside braces PR-URL: https://github.com/nodejs/node/pull/14162 Reviewed-By: Vse Mozhet Byt Reviewed-By: Refael Ackermann Reviewed-By: Timothy Gu Reviewed-By: James M Snell --- .eslintignore | 1 + .eslintrc.yaml | 7 ++++--- doc/.eslintrc.yaml | 2 -- 3 files changed, 5 insertions(+), 5 deletions(-) diff --git a/.eslintignore b/.eslintignore index bd85fff8e4..26f48161f7 100644 --- a/.eslintignore +++ b/.eslintignore @@ -5,6 +5,7 @@ test/fixtures test/disabled test/tmp*/ tools/eslint +tools/icu node_modules benchmark/tmp/ doc/**/*.js diff --git a/.eslintrc.yaml b/.eslintrc.yaml index 5e025301fe..b956f3e5a2 100644 --- a/.eslintrc.yaml +++ b/.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 diff --git a/doc/.eslintrc.yaml b/doc/.eslintrc.yaml index a112e0f54c..992b79107e 100644 --- a/doc/.eslintrc.yaml +++ b/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