blob: a112e0f54cd6047daa30c3fc58534935010a35ab (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
|
## Docs-specific linter rules
rules:
object-curly-spacing: [error, always]
# 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}]
|