-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy path.eslintrc.js
More file actions
46 lines (45 loc) · 1.06 KB
/
.eslintrc.js
File metadata and controls
46 lines (45 loc) · 1.06 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
module.exports = {
parser: '@typescript-eslint/parser',
plugins: ['@typescript-eslint'],
extends: [
'eslint:recommended',
'plugin:@typescript-eslint/recommended',
],
root: true,
env: {
node: true,
jest: true,
browser: true,
es2020: true,
},
parserOptions: {
ecmaVersion: 2020,
sourceType: 'module',
// Removed project reference to avoid tsconfig conflicts
},
rules: {
// TypeScript-specific rules
'@typescript-eslint/no-unused-vars': ['error', {
argsIgnorePattern: '^_',
varsIgnorePattern: '^_',
ignoreRestSiblings: true
}],
'@typescript-eslint/no-explicit-any': 'off', // Turn off for generated API code
},
overrides: [
{
files: ['**/__tests__/**/*.ts', '**/*.test.ts'],
rules: {
'@typescript-eslint/no-unused-vars': 'off',
'no-unused-vars': 'off'
}
}
],
ignorePatterns: [
'dist/',
'node_modules/',
'*.js',
'src/api/**/*', // Ignore generated API code
'src/model/**/*', // Ignore generated model code
],
};