diff options
author | Rich Trott <rtrott@gmail.com> | 2017-06-18 08:37:09 +0300 |
---|---|---|
committer | Rich Trott <rtrott@gmail.com> | 2017-06-23 06:33:55 +0300 |
commit | ea36609fc91c60f722036ad4de420e249dcd87a5 (patch) | |
tree | a14175811161a393a20e4c446cff0f5dd69bf86f /tools | |
parent | 491f838511a8c7b848fb0affcc3661ee45edbdc5 (diff) |
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 <teddy.katz@gmail.com>
Reviewed-By: Vse Mozhet Byt <vsemozhetbyt@gmail.com>
Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
Reviewed-By: James M Snell <jasnell@gmail.com>
Reviewed-By: Michael Dawson <michael_dawson@ca.ibm.com>
Diffstat (limited to 'tools')
-rw-r--r-- | tools/.eslintrc.yaml | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/tools/.eslintrc.yaml b/tools/.eslintrc.yaml new file mode 100644 index 00000000000..e1405dd718b --- /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}] |