forked from nock/nock
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.eslintrc.yml
34 lines (30 loc) · 875 Bytes
/
.eslintrc.yml
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
26
27
28
29
30
31
32
33
34
env:
node: true
parserOptions:
ecmaVersion: 9
# Override eslint-config-standard, which incorrectly sets this to "module",
# though that setting is only for ES6 modules, not CommonJS modules.
sourceType: 'script'
extends:
- 'eslint:recommended'
- standard
- prettier
rules:
# TODO These are included in standard and should be cleaned up and turned on.
node/no-deprecated-api: 'off' # we still make heavy use of url.parse
# Nock additions.
strict: ['error', 'safe']
no-loop-func: 'error'
no-var: 'error'
prefer-const: 'error'
object-shorthand: ['error', 'properties']
prefer-template: 'error'
arrow-body-style: ['error', 'as-needed']
prefer-destructuring:
[
'error',
{
'VariableDeclarator': { 'array': false, 'object': true },
'AssignmentExpression': { 'array': false, 'object': false },
},
]