From 9049f09e0f53cb40d4cd03f2a4f95056a19ebae4 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 38d3367e9d1779..a681716c667576 100644 --- a/.eslintignore +++ b/.eslintignore @@ -4,6 +4,7 @@ test/addons/??_*/ test/fixtures test/tmp*/ tools/eslint +tools/icu node_modules benchmark/tmp/ doc/**/*.js diff --git a/.eslintrc.yaml b/.eslintrc.yaml index 6643b4649d0da5..b68d26574658c5 100644 --- a/.eslintrc.yaml +++ b/.eslintrc.yaml @@ -141,6 +141,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] @@ -148,9 +149,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 1c5177d90642ad..b269eb14e625f4 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