Skip to content

Commit 72a9dba

Browse files
author
ComBbaJunior
committed
✨ Add ESLint configuration and fix all linting warnings
- Add eslint.config.mjs with TypeScript support - Install @eslint/js, eslint, typescript-eslint - Fix unused imports (real, VideoInfo, CollectResult, sortMap) - Fix unused variables (MAX_VIDEO_AGE_DAYS, catch error vars) - Replace 'any' types with proper type assertions - All 11 warnings resolved, lint now passes cleanly - All 17 tests still passing
1 parent 3c5b7b7 commit 72a9dba

File tree

9 files changed

+1261
-24
lines changed

9 files changed

+1261
-24
lines changed

eslint.config.mjs

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
import eslint from '@eslint/js';
2+
import tseslint from 'typescript-eslint';
3+
4+
export default tseslint.config(
5+
eslint.configs.recommended,
6+
...tseslint.configs.recommended,
7+
{
8+
ignores: ['dist/', 'node_modules/', 'coverage/', 'data/'],
9+
},
10+
{
11+
files: ['**/*.ts'],
12+
rules: {
13+
'@typescript-eslint/no-unused-vars': ['warn', { argsIgnorePattern: '^_' }],
14+
'@typescript-eslint/explicit-function-return-type': 'off',
15+
'@typescript-eslint/no-explicit-any': 'warn',
16+
'no-console': 'off',
17+
},
18+
}
19+
);

0 commit comments

Comments
 (0)