From 1ebad50509ac051bdb7debb6ee5478d70a6f7ff1 Mon Sep 17 00:00:00 2001 From: Rich Trott Date: Sat, 17 Jun 2017 22:37:09 -0700 Subject: [PATCH] tools: apply stricter indentation rules to tools ESLint 4.0.0 provides stricter (and more granular) indentation checking than previous versions. Apply the stricter indentation rules to the tools directory. PR-URL: https://github.com/nodejs/node/pull/13758 Reviewed-By: Teddy Katz Reviewed-By: Vse Mozhet Byt Reviewed-By: Colin Ihrig Reviewed-By: James M Snell Reviewed-By: Michael Dawson --- tools/.eslintrc.yaml | 12 ++++++++++++ 1 file changed, 12 insertions(+) create mode 100644 tools/.eslintrc.yaml diff --git a/tools/.eslintrc.yaml b/tools/.eslintrc.yaml new file mode 100644 index 00000000000000..e1405dd718bf0f --- /dev/null +++ b/tools/.eslintrc.yaml @@ -0,0 +1,12 @@ +## Tools-specific linter rules + +rules: + # Stylistic Issues + # http://eslint.org/docs/rules/#stylistic-issues + indent: [2, 2, {ArrayExpression: first, + CallExpression: {arguments: first}, + FunctionDeclaration: {parameters: first}, + FunctionExpression: {parameters: first}, + MemberExpression: off, + ObjectExpression: first, + SwitchCase: 1}]