blob: df93899bfb8e407fbb917a86dd60a4817a588f58 (
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: [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}]
|