17 lines
463 B
JavaScript
17 lines
463 B
JavaScript
import eslint from '@eslint/js';
|
|
import tseslint from 'typescript-eslint';
|
|
|
|
export default tseslint.config(
|
|
eslint.configs.recommended,
|
|
...tseslint.configs.recommended,
|
|
{
|
|
files: ['src/**/*.ts'],
|
|
rules: {
|
|
'@typescript-eslint/no-unused-vars': ['error', { argsIgnorePattern: '^_' }],
|
|
'@typescript-eslint/no-explicit-any': 'warn',
|
|
},
|
|
},
|
|
{
|
|
ignores: ['dist/', 'node_modules/', '**/*.d.ts', '**/*.spec.ts', '**/*.test.ts'],
|
|
},
|
|
);
|