Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/nodejs/node.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRich Trott <rtrott@gmail.com>2017-06-18 08:37:09 +0300
committerRich Trott <rtrott@gmail.com>2017-06-23 06:33:55 +0300
commitea36609fc91c60f722036ad4de420e249dcd87a5 (patch)
treea14175811161a393a20e4c446cff0f5dd69bf86f /tools/.eslintrc.yaml
parent491f838511a8c7b848fb0affcc3661ee45edbdc5 (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/.eslintrc.yaml')
-rw-r--r--tools/.eslintrc.yaml12
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}]