mirror of
https://github.com/nodejs/node.git
synced 2024-11-29 15:06:33 +01:00
69f7ce9cea
This enables the `no-multiple-empty-lines` eslint rule for the docs. PR-URL: https://github.com/nodejs/node/pull/18747 Reviewed-By: Weijia Wang <starkwang@126.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: Matheus Marchini <matheus@sthima.com>
18 lines
389 B
YAML
18 lines
389 B
YAML
## Docs-specific linter rules
|
|
|
|
rules:
|
|
# ease some restrictions in doc examples
|
|
no-restricted-properties: off
|
|
no-undef: off
|
|
no-unused-vars: off
|
|
strict: off
|
|
symbol-description: off
|
|
|
|
# add new ECMAScript features gradually
|
|
no-var: error
|
|
prefer-const: error
|
|
prefer-rest-params: error
|
|
|
|
# Stylistic Issues
|
|
no-multiple-empty-lines: [error, {max: 1, maxEOF: 0, maxBOF: 0}]
|