-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy path.eslintrc.js
More file actions
41 lines (41 loc) · 1.21 KB
/
Copy path.eslintrc.js
File metadata and controls
41 lines (41 loc) · 1.21 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
module.exports = {
parser: '@typescript-eslint/parser',
extends: [
'eslint:recommended',
'plugin:@typescript-eslint/recommended',
],
parserOptions: {
ecmaVersion: 2020,
sourceType: 'module',
},
rules: {
'@typescript-eslint/no-explicit-any': 'off', // Allow any for complex decoding/mocks
'@typescript-eslint/no-unused-vars': ['error', { argsIgnorePattern: '^_' }],
'no-console': 'off',
'@typescript-eslint/ban-ts-comment': 'off',
'@typescript-eslint/no-var-requires': 'off', // Allow dynamic requires for optional modules
'no-empty': 'off' // Allow empty catch blocks (swallows errors intentionally)
},
ignorePatterns: [
"dist/",
"node_modules/",
"coverage/",
"jest.config.js",
"*.js",
"cli/test-*.ts" // Ignore test scripts in CLI
],
overrides: [
{
files: ["cli/privacy-scan.ts"],
rules: {
"no-console": "off" // CLI tool needs stdout
}
},
{
files: ["tests/**/*.ts"],
rules: {
"@typescript-eslint/no-explicit-any": "off"
}
}
]
};