Skip to content

Commit 76ca210

Browse files
claudeweb-flow
authored andcommitted
feat(dx): add ESLint v9 flat config with typescript-eslint [AZ-731]
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com> GitOrigin-RevId: c666107c5594e684eda21b057409a0e84e6d2f6b
1 parent 96c2efb commit 76ca210

5 files changed

Lines changed: 1181 additions & 82 deletions

File tree

.github/workflows/publish.yml

Lines changed: 0 additions & 24 deletions
This file was deleted.

eslint.config.js

Lines changed: 35 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,35 @@
1+
import eslint from '@eslint/js'
2+
import prettier from 'eslint-config-prettier'
3+
import tseslint from 'typescript-eslint'
4+
5+
export default tseslint.config(
6+
eslint.configs.recommended,
7+
...tseslint.configs.recommended,
8+
prettier,
9+
{
10+
ignores: ['dist/', 'coverage/', 'node_modules/'],
11+
},
12+
// The proxy pattern intentionally uses Function type for dynamic wrapping
13+
{
14+
files: ['src/index.ts'],
15+
rules: {
16+
'@typescript-eslint/no-unsafe-function-type': 'off',
17+
},
18+
},
19+
// CJS reporter uses require/module/process/console
20+
{
21+
files: ['**/*.cjs'],
22+
rules: {
23+
'@typescript-eslint/no-require-imports': 'off',
24+
'no-undef': 'off',
25+
},
26+
},
27+
// Test files may use Function type for dynamic assertions
28+
{
29+
files: ['src/__tests__/**'],
30+
rules: {
31+
'@typescript-eslint/no-unsafe-function-type': 'off',
32+
'@typescript-eslint/no-unused-vars': ['error', { argsIgnorePattern: '^_', varsIgnorePattern: '^_' }],
33+
},
34+
},
35+
)

0 commit comments

Comments
 (0)