mirror of
https://github.com/nodejs/node.git
synced 2024-11-30 23:43:09 +01:00
ce8bce497c
Do not promote using of `arguments`.
One fragment is left as is because of history nature:
it uses a real deprecated code from libs.
Refs: http://eslint.org/docs/rules/prefer-rest-params
Refs: 99da8e8e02/lib/util.js (L1002-L1006)
PR-URL: https://github.com/nodejs/node/pull/13389
Reviewed-By: Daijiro Wachi <daijiro.wachi@gmail.com>
Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
Reviewed-By: Luigi Pinca <luigipinca@gmail.com>
Reviewed-By: James M Snell <jasnell@gmail.com>
Reviewed-By: Refael Ackermann <refack@gmail.com>
16 lines
291 B
YAML
16 lines
291 B
YAML
## Docs-specific linter rules
|
|
|
|
rules:
|
|
object-curly-spacing: [2, always]
|
|
|
|
# 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
|
|
prefer-rest-params: 2
|