-
Notifications
You must be signed in to change notification settings - Fork 1
/
.eslintrc.js
36 lines (36 loc) · 901 Bytes
/
.eslintrc.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
module.exports = {
env: {
node: true,
commonjs: true,
es6: true,
jest: true,
},
extends: 'eslint:recommended',
globals: {
Atomics: 'readonly',
SharedArrayBuffer: 'readonly',
},
parserOptions: {
ecmaVersion: 2020,
},
rules: {
'no-console': ['error', { allow: ['error', 'warn'] }],
'no-ternary': 'error',
'no-return-await': 'error',
'no-plusplus': 'error',
'no-lonely-if': 'error',
'no-unused-vars': 'error',
'no-undef': 'error',
eqeqeq: ['error', 'always'],
'no-var': 'error',
'prefer-const': 'error',
'no-await-in-loop': 'warn',
'no-promise-executor-return': 'warn',
'require-atomic-updates': 'warn',
// 'eslint max-nested-callbacks': ["error", 3],
// 'prefer-promise-reject-errors': 'warn',
// 'node/handle-callback-err': 'warn',
// 'node/no-sync': 'warn'
},
ignorePatterns: [''],
};