-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.eslintrc.js
75 lines (75 loc) · 1.82 KB
/
.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
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
module.exports = {
root: true,
env: {
es6: true,
jest: true,
},
parser: '@typescript-eslint/parser',
plugins: [
'json',
'prettier',
'sort-class-members',
'jest',
'jest-formatting',
],
extends: [
'eslint:recommended',
'plugin:node/recommended',
'plugin:jest/all',
'plugin:jest-formatting/strict',
'plugin:prettier/recommended',
],
rules: {
'sort-class-members/sort-class-members': [
2,
{
order: [
'[static-properties]',
'[static-methods]',
'[properties]',
'[conventional-private-properties]',
'constructor',
'[methods]',
'[conventional-private-methods]',
],
accessorPairPositioning: 'getThenSet',
},
],
'jest/no-conditional-expect': 0,
'no-lonely-if': 2,
'no-nested-ternary': 2,
'max-nested-callbacks': [2, { max: 3 }],
'constructor-super': 2,
'no-this-before-super': 2,
'prefer-spread': 2,
'import/prefer-default-export': 0,
'no-console': 2,
'no-continue': 0,
'no-restricted-syntax': 0,
'node/no-unpublished-require': 0,
'node/no-path-concat': 2,
'node/callback-return': 2,
'node/global-require': 2,
'node/no-sync': 2,
'node/prefer-promises/dns': 2,
'node/prefer-promises/fs': 2,
'node/prefer-global/url-search-params': 2,
'no-await-in-loop': 0,
'no-underscore-dangle': 0,
complexity: ['error', 10],
'comma-dangle': [
'error',
{
arrays: 'always-multiline',
objects: 'always-multiline',
imports: 'always-multiline',
exports: 'always-multiline',
functions: 'never',
},
],
'prettier/prettier': 'error',
'jest/max-expects': 'off',
'jest/no-untyped-mock-factory': 'off',
'jest/prefer-strict-equal': 'off',
},
}