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
path: root/doc
diff options
context:
space:
mode:
authorRich Trott <rtrott@gmail.com>2017-06-27 23:33:07 +0300
committerRich Trott <rtrott@gmail.com>2017-06-30 01:44:27 +0300
commit7477f9ba9c40ac36b17e005ff61f8fa3794f6d3e (patch)
tree28f57bf68cb75346d3ceb66f2394b61b9e0506b2 /doc
parent8969c1b76209e83f3fc3cb00a41421f7996e399b (diff)
doc: use stricter indentation checking for docs
Use stricter ESLint indent checking for sample code in docs. PR-URL: https://github.com/nodejs/node/pull/13950 Reviewed-By: Refael Ackermann <refack@gmail.com> Reviewed-By: Luigi Pinca <luigipinca@gmail.com> Reviewed-By: Colin Ihrig <cjihrig@gmail.com> Reviewed-By: Vse Mozhet Byt <vsemozhetbyt@gmail.com> Reviewed-By: Benjamin Gruenbaum <benjamingr@gmail.com> Reviewed-By: Tobias Nießen <tniessen@tnie.de> Reviewed-By: Michael Dawson <michael_dawson@ca.ibm.com> Reviewed-By: James M Snell <jasnell@gmail.com>
Diffstat (limited to 'doc')
-rw-r--r--doc/.eslintrc.yaml10
1 files changed, 10 insertions, 0 deletions
diff --git a/doc/.eslintrc.yaml b/doc/.eslintrc.yaml
index 5b7ea75de5c..df93899bfb8 100644
--- a/doc/.eslintrc.yaml
+++ b/doc/.eslintrc.yaml
@@ -13,3 +13,13 @@ rules:
no-var: 2
prefer-const: 2
prefer-rest-params: 2
+
+ # use stricter indent over indent-legacy
+ indent-legacy: 0
+ indent: [2, 2, {ArrayExpression: first,
+ CallExpression: {arguments: first},
+ FunctionDeclaration: {parameters: first},
+ FunctionExpression: {parameters: first},
+ MemberExpression: off,
+ ObjectExpression: first,
+ SwitchCase: 1}]