Repository navigation
Expand file tree
/
Copy patheslint.config.mjs
More file actions
54 lines (53 loc) · 1.6 KB
/
Copy patheslint.config.mjs
File metadata and controls
54 lines (53 loc) · 1.6 KB
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
import base from '@constructive-io/eslint-config';
export default [
...base,
{
// several rules this repo turns off still have inline disable comments;
// leave them in place rather than have --fix strip them
linterOptions: {
reportUnusedDisableDirectives: 'off'
}
},
{
ignores: [
// codegen output, regenerated by `pnpm generate`
'sdk/constructive-cli/src/**',
'sdk/constructive-react/src/**',
'sdk/constructive-sdk/src/**',
'sdk/migrate-client/src/migrate/**',
'**/__generated__/**',
'**/*.generated.ts',
'postgres/pg-ast/src/asts.ts',
'postgres/pg-ast/src/wrapped.ts',
// read verbatim at codegen time and written into generated clients
'graphql/codegen/src/core/codegen/templates/**',
// codegen output snapshots and standalone sqitch/pgpm fixture projects
'__fixtures__/**',
'**/__fixtures__/**'
]
},
{
rules: {
// `declare global { namespace Grafast { ... } }` augmentations
'@typescript-eslint/no-namespace': 'off',
// `Function` in plugin/callback signatures
'@typescript-eslint/no-unsafe-function-type': 'off',
// `{}` as a type-level marker (StrictSelect) and placeholder option bags
'@typescript-eslint/no-empty-object-type': 'off'
}
},
{
// ANSI escapes are matched on purpose
files: ['pgpm/logger/**'],
rules: {
'no-control-regex': 'off'
}
},
{
// type-level assertions are expressions by construction
files: ['**/*.type-test.ts'],
rules: {
'@typescript-eslint/no-unused-expressions': 'off'
}
}
];