mirror of https://github.com/lukechilds/node.git
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
23 lines
700 B
23 lines
700 B
## Docs-specific linter rules
|
|
|
|
rules:
|
|
# ease some restrictions in doc examples
|
|
no-restricted-properties: off
|
|
no-undef: off
|
|
no-unused-vars: off
|
|
strict: off
|
|
|
|
# add new ECMAScript features gradually
|
|
no-var: error
|
|
prefer-const: error
|
|
prefer-rest-params: error
|
|
|
|
# use stricter indent over indent-legacy
|
|
indent-legacy: off
|
|
indent: [error, 2, {ArrayExpression: first,
|
|
CallExpression: {arguments: first},
|
|
FunctionDeclaration: {parameters: first},
|
|
FunctionExpression: {parameters: first},
|
|
MemberExpression: off,
|
|
ObjectExpression: first,
|
|
SwitchCase: 1}]
|
|
|