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:
authorRefael Ackermann <refack@gmail.com>2017-07-03 19:51:45 +0300
committerRefael Ackermann <refack@gmail.com>2017-07-05 23:41:19 +0300
commit46d7cb88c7f8b416e667c52de80e6766115b3781 (patch)
treef689825a46cfc27743bb0e71a73f1f47a5b92db9 /doc/.eslintrc.yaml
parent8520e6f2804fad64fb50b91c80553715d3c83bd4 (diff)
tools: eslint - use `error` and `off`
PR-URL: https://github.com/nodejs/node/pull/14061 Reviewed-By: Benjamin Gruenbaum <benjamingr@gmail.com> Reviewed-By: Michaƫl Zasso <targos@protonmail.com> Reviewed-By: Vse Mozhet Byt <vsemozhetbyt@gmail.com> Reviewed-By: Colin Ihrig <cjihrig@gmail.com> Reviewed-By: Franziska Hinkelmann <franziska.hinkelmann@gmail.com> Reviewed-By: Luigi Pinca <luigipinca@gmail.com>
Diffstat (limited to 'doc/.eslintrc.yaml')
-rw-r--r--doc/.eslintrc.yaml32
1 files changed, 16 insertions, 16 deletions
diff --git a/doc/.eslintrc.yaml b/doc/.eslintrc.yaml
index df93899bfb8..a112e0f54cd 100644
--- a/doc/.eslintrc.yaml
+++ b/doc/.eslintrc.yaml
@@ -1,25 +1,25 @@
## Docs-specific linter rules
rules:
- object-curly-spacing: [2, always]
+ object-curly-spacing: [error, always]
# ease some restrictions in doc examples
- no-restricted-properties: 0
- no-undef: 0
- no-unused-vars: 0
- strict: 0
+ no-restricted-properties: off
+ no-undef: off
+ no-unused-vars: off
+ strict: off
# add new ECMAScript features gradually
- no-var: 2
- prefer-const: 2
- prefer-rest-params: 2
+ no-var: error
+ prefer-const: error
+ prefer-rest-params: error
# 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}]
+ indent-legacy: off
+ indent: [error, 2, {ArrayExpression: first,
+ CallExpression: {arguments: first},
+ FunctionDeclaration: {parameters: first},
+ FunctionExpression: {parameters: first},
+ MemberExpression: off,
+ ObjectExpression: first,
+ SwitchCase: 1}]