-
-
Notifications
You must be signed in to change notification settings - Fork 116
Expand file tree
/
Copy patheslint.config.mjs
More file actions
48 lines (46 loc) · 1.5 KB
/
Copy patheslint.config.mjs
File metadata and controls
48 lines (46 loc) · 1.5 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
import tidgiConfig from 'eslint-config-tidgi';
import { dirname } from 'node:path';
import { fileURLToPath } from 'node:url';
const __filename = fileURLToPath(import.meta.url);
const __dirname = dirname(__filename);
export default [
...tidgiConfig,
{
languageOptions: {
parserOptions: {
projectService: {
allowDefaultProject: ['./*.js', './*.mjs', './*.*.js', './*.*.ts', './*.*.mjs'],
},
tsconfigRootDir: __dirname,
},
},
rules: {
'@typescript-eslint/no-unnecessary-condition': 'off',
'@typescript-eslint/require-await': 'off',
'@typescript-eslint/no-dynamic-delete': 'off',
// TODO: fix these rules from eslint-config-tidgi@3 upgrade, then remove these overrides
'security-node/preserve-caught-error': 'off',
'preserve-caught-error': 'off',
'no-useless-assignment': 'warn',
'import-x/no-unresolved': 'off',
},
},
{
files: ['**/*.test.ts', '**/*.test.tsx', '**/*.spec.ts', '**/*.spec.tsx', '*.env.d.ts'],
rules: {
'@typescript-eslint/unbound-method': 'off',
'unicorn/prevent-abbreviations': 'off',
'@typescript-eslint/no-unsafe-call': 'off',
'@typescript-eslint/no-unsafe-member-access': 'off',
'@typescript-eslint/no-unsafe-argument': 'off',
'@typescript-eslint/no-unsafe-assignment': 'off',
'@typescript-eslint/no-explicit-any': 'warn',
},
},
{
files: ['scripts/run-e2e.ts'],
rules: {
'unicorn/prevent-abbreviations': 'off',
},
},
];