-
Notifications
You must be signed in to change notification settings - Fork 12
/
eslint.config.js
49 lines (48 loc) · 1.28 KB
/
eslint.config.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
import { baseConfig } from '@enormora/eslint-config-base';
import { nodeConfig } from '@enormora/eslint-config-node';
import { avaConfig } from '@enormora/eslint-config-ava';
import { typescriptConfig } from '@enormora/eslint-config-typescript';
export default [
{
ignores: ['target/**']
},
baseConfig,
nodeConfig,
{
...typescriptConfig,
files: ['**/*.ts'],
rules: {
...typescriptConfig.rules,
'functional/prefer-immutable-types': [
'error',
{
...typescriptConfig.rules['functional/prefer-immutable-types'][1],
ignoreTypePattern: ['Result']
}
]
}
},
{
...avaConfig,
files: ['**/*.test.ts']
},
{
rules: {
'max-lines-per-function': ['error', { max: 50, skipBlankLines: true, skipComments: true }]
}
},
{
files: ['eslint.config.js', 'ava.config.js', 'prettier.config.js'],
rules: {
'import/no-default-export': 'off'
}
},
{
files: ['source/bin/pr-log.ts'],
rules: {
'no-console': 'off',
'node/no-process-env': 'off',
'import/max-dependencies': 'off'
}
}
];