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:
authorVse Mozhet Byt <vsemozhetbyt@gmail.com>2017-04-22 15:22:40 +0300
committerVse Mozhet Byt <vsemozhetbyt@gmail.com>2017-04-25 00:06:39 +0300
commit6ee6aaefa12206335954f8c5ecb50d53125325fd (patch)
tree7e028b196b36552c3befaeee5c2b17960d84f204 /doc/.eslintrc.yaml
parentb4fea2a3d62da5e2e3f90d7f2109f02f927f7174 (diff)
doc: add no-var, prefer-const in doc eslintrc
PR-URL: https://github.com/nodejs/node/pull/12563 Refs: https://github.com/nodejs/node/pull/12557#issuecomment-296015032 Reviewed-By: Teddy Katz <teddy.katz@gmail.com> Reviewed-By: James M Snell <jasnell@gmail.com> Reviewed-By: Timothy Gu <timothygu99@gmail.com> Reviewed-By: Gibson Fahnestock <gibfahn@gmail.com> Reviewed-By: Yuta Hiroto <hello@about-hiroppy.com>
Diffstat (limited to 'doc/.eslintrc.yaml')
-rw-r--r--doc/.eslintrc.yaml9
1 files changed, 8 insertions, 1 deletions
diff --git a/doc/.eslintrc.yaml b/doc/.eslintrc.yaml
index b81bec65088..b4fbf847be7 100644
--- a/doc/.eslintrc.yaml
+++ b/doc/.eslintrc.yaml
@@ -1,5 +1,12 @@
+## Docs-specific linter rules
+
rules:
- strict: 0
+ # ease some restrictions in doc examples
no-restricted-properties: 0
no-undef: 0
no-unused-vars: 0
+ strict: 0
+
+ # add new ECMAScript features gradually
+ no-var: 2
+ prefer-const: 2