import tseslint from 'typescript-eslint'; export default tseslint.config( ...tseslint.configs.recommended, { rules: { '@typescript-eslint/no-explicit-any': 'warn', '@typescript-eslint/no-unused-vars': ['error', { argsIgnorePattern: '^_' }], 'no-control-regex': 'warn', }, }, { ignores: [ // The GitHub Action's gate/comment script: plain CommonJS run by `node` // from action.yml, outside the TS build. Covered by its own selftest // (src/__tests__/action-comment.integration.test.ts). 'comment.js', // The Action's upload script, same shape; covered by // src/__tests__/action-upload.test.ts. 'upload.js', 'resolve-version.js', 'dist/**', 'node_modules/**', 'coverage/**', 'scripts/**', // Claude Code worktrees (parallel agent sessions) are full repo copies — // linting them from the parent repo trips "multiple TSConfigRootDirs" // and duplicates every finding. They lint themselves from inside. '.claude/worktrees/**', // The policy-engine workspace has its own build output. Lint runs // from inside the package; the parent shouldn't reach into dist/. 'packages/**/dist/**', 'packages/**/node_modules/**', ], } );