forked from Yeachan-Heo/oh-my-claudecode
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy patheslint.config.js
More file actions
43 lines (42 loc) · 1.28 KB
/
eslint.config.js
File metadata and controls
43 lines (42 loc) · 1.28 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
import eslint from '@eslint/js';
import tseslint from 'typescript-eslint';
export default tseslint.config(
eslint.configs.recommended,
...tseslint.configs.recommended,
{
files: ['src/**/*.ts'],
languageOptions: {
parserOptions: {
projectService: true,
tsconfigRootDir: import.meta.dirname,
},
},
rules: {
// Unused vars: warn only (many pre-existing in codebase)
'@typescript-eslint/no-unused-vars': [
'warn',
{
argsIgnorePattern: '^_',
varsIgnorePattern: '^_',
caughtErrorsIgnorePattern: '^_',
},
],
// Allow any for flexibility in agent system
'@typescript-eslint/no-explicit-any': 'off',
// Allow require imports for dynamic loading
'@typescript-eslint/no-require-imports': 'off',
// Template strings have many escaped quotes - disable
'no-useless-escape': 'off',
// Minor style issues - warn only
'prefer-const': 'warn',
'no-regex-spaces': 'warn',
// Pre-existing code patterns - disable
'no-useless-catch': 'off',
// Allow ANSI escape codes in regexes (used for terminal output stripping)
'no-control-regex': 'off',
},
},
{
ignores: ['dist/**', 'node_modules/**', '*.js', '*.mjs'],
}
);