diff options
author | Vse Mozhet Byt <vsemozhetbyt@gmail.com> | 2017-04-22 15:22:40 +0300 |
---|---|---|
committer | Vse Mozhet Byt <vsemozhetbyt@gmail.com> | 2017-04-25 00:06:39 +0300 |
commit | 6ee6aaefa12206335954f8c5ecb50d53125325fd (patch) | |
tree | 7e028b196b36552c3befaeee5c2b17960d84f204 /doc/.eslintrc.yaml | |
parent | b4fea2a3d62da5e2e3f90d7f2109f02f927f7174 (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.yaml | 9 |
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 |