-
Notifications
You must be signed in to change notification settings - Fork 188
/
.eslintrc.js
90 lines (90 loc) · 2.18 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
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
/* eslint-disable import/no-commonjs, functional/immutable-data, functional/no-expression-statement */
module.exports = {
plugins: ['functional', 'sonarjs', 'promise', 'import'],
extends: [
'algolia',
'algolia/jest',
'algolia/typescript',
'plugin:functional/recommended',
'plugin:sonarjs/recommended',
'plugin:promise/recommended',
],
rules: {
'functional/no-conditional-statement': ['off'],
'functional/functional-parameters': ['off'],
'@typescript-eslint/explicit-function-return-type': ['off'],
'valid-jsdoc': [
'error',
{
requireReturnType: false,
requireParamType: false,
},
],
'jsdoc/check-param-names': ['off'],
'import/extensions': ['off'],
'import/order': [
'error',
{
alphabetize: {
order: 'asc',
caseInsensitive: true,
},
'newlines-between': 'always',
groups: ['builtin', 'external', 'parent', 'sibling', 'index'],
pathGroups: [
{
pattern: '@/**/*',
group: 'parent',
position: 'before',
},
],
pathGroupsExcludedImportTypes: ['builtin'],
},
],
},
overrides: [
{
files: ['test/**/*'],
rules: {
'import/no-extraneous-dependencies': 'off',
},
},
{
files: ['scripts/**/*'],
rules: {
'no-void': 'off',
'no-console': 'off',
'no-process-exit': 'off',
'functional/no-expression-statement': 'off',
'@typescript-eslint/naming-convention': 'off',
'jsdoc/require-description': 'off',
'jsdoc/match-description': 'off',
'valid-jsdoc': 'off',
},
},
{
files: ['**/__tests__/**'],
rules: {
'functional/no-expression-statement': ['off'],
'import/no-extraneous-dependencies': ['off'],
'sonarjs/no-duplicate-string': ['off'],
},
},
{
files: ['**/*.ts'],
rules: {
'no-undef': 'off',
},
},
],
settings: {
'import/parsers': {
'@typescript-eslint/parser': ['.ts'],
},
'import/resolver': {
typescript: {
alwaysTryTypes: true,
},
},
},
};