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.
25 lines
687 B
25 lines
687 B
## 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
|
|
|
|
# use stricter indent over indent-legacy
|
|
indent-legacy: 0
|
|
indent: [2, 2, {ArrayExpression: first,
|
|
CallExpression: {arguments: first},
|
|
FunctionDeclaration: {parameters: first},
|
|
FunctionExpression: {parameters: first},
|
|
MemberExpression: off,
|
|
ObjectExpression: first,
|
|
SwitchCase: 1}]
|
|
|