-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.js
45 lines (44 loc) · 1.35 KB
/
index.js
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
35
36
37
38
39
40
41
42
43
44
45
'use strict'
module.exports = {
env: {
es2020: true
},
extends: ['eslint:recommended', 'plugin:promise/recommended'],
plugins: ['prefer-arrow', 'promise'],
rules: {
'arrow-body-style': ['warn', 'never'],
'camelcase': 'warn',
'complexity': ['warn', 10], // https://github.com/eslint/eslint/issues/4808
'consistent-return': 'warn',
'curly': ['warn', 'all'],
'max-params': ['warn', 4],
'new-cap': ['warn', { capIsNewExceptionPattern: '^Big$' }],
'no-alert': 'warn',
'no-console': 'warn',
'no-else-return': 'warn',
'no-multi-assign': 'error',
'no-param-reassign': 'warn',
'no-return-assign': 'warn',
'no-shadow': 'warn',
'no-unused-vars': ['error', { ignoreRestSiblings: true }],
'no-use-before-define': 'error',
'no-var': 'error',
'object-shorthand': 'warn',
'prefer-arrow/prefer-arrow-functions': [
'warn',
{ disallowPrototype: false, singleReturnOnly: true }
],
'prefer-template': 'warn',
'promise/always-return': 'off',
'promise/catch-or-return': ['error', { allowFinally: true }],
'promise/no-nesting': 'off',
'quotes': [
'warn',
'single',
{ allowTemplateLiterals: false, avoidEscape: true }
],
'require-jsdoc': 'off',
'sort-keys': ['warn', 'asc', { caseSensitive: false, natural: true }],
'strict': ['error', 'safe']
}
}