-
Notifications
You must be signed in to change notification settings - Fork 0
/
eslint.config.js
64 lines (63 loc) · 2.2 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
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
import dprintPlugin from '@ben_12/eslint-plugin-dprint';
import { baseConfig } from '@enormora/eslint-config-base';
import { nodeConfig, nodeConfigFileConfig } from '@enormora/eslint-config-node';
import { typescriptConfig } from '@enormora/eslint-config-typescript';
export default [
{
ignores: ['target/**/*', 'integration-tests/fixtures/**/*']
},
baseConfig,
nodeConfig,
{
plugins: { dprint: dprintPlugin },
rules: {
'prettier/prettier': 'off',
'dprint/typescript': ['error', { configFile: 'dprint.json' }],
'import/order': 'off',
'@stylistic/member-delimiter-style': 'off'
}
},
{
...typescriptConfig,
files: ['**/*.ts']
},
{
...nodeConfigFileConfig,
files: ['eslint.config.js', 'packtory.config.js']
},
{
files: ['packtory.config.js'],
rules: {
'node/no-process-env': 'off'
}
},
{
files: ['**/*.ts'],
rules: {
// re-enable once https://github.com/eslint-functional/eslint-plugin-functional/issues/733 is fixed
'functional/prefer-immutable-types': 'off',
// re-enable once https://github.com/eslint-functional/eslint-plugin-functional/issues/733 is fixed
'functional/type-declaration-immutability': 'off'
}
},
{
files: ['**/*.test.ts'],
rules: {
'max-statements': 'off',
'max-lines': 'off'
}
},
{
files: ['source/zod-graphql-query-builder/builder.ts', 'source/zod-graphql-query-builder/query-schema.ts'],
// those rules crash for some reason, we should re-enable them as soon as they are not crashing anymore
rules: {
'@typescript-eslint/no-unnecessary-type-assertion': 'off',
'@typescript-eslint/no-unsafe-argument': 'off',
'@typescript-eslint/no-confusing-void-expression': 'off',
'@typescript-eslint/promise-function-async': 'off',
'@typescript-eslint/no-misused-promises': 'off',
'@typescript-eslint/no-unsafe-return': 'off',
'@typescript-eslint/strict-boolean-expressions': 'off'
}
}
];