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.
36 lines
860 B
36 lines
860 B
4 years ago
|
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:
|
||
|
# Override some recommended rules.
|
||
|
no-unused-vars: ['error', { 'args': 'none' }]
|
||
|
no-empty: ['error', { 'allowEmptyCatch': true }]
|
||
|
|
||
|
# 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 },
|
||
|
},
|
||
|
]
|