eslint.config.js•1.28 kB
// eslint.config.js
import eslint from '@eslint/js';
import tseslint from '@typescript-eslint/eslint-plugin';
import tsParser from '@typescript-eslint/parser';
export default [
eslint.configs.recommended,
{
files: ['**/*.ts'],
languageOptions: {
parser: tsParser,
ecmaVersion: 2022,
sourceType: 'module',
globals: {
console: 'readonly',
process: 'readonly',
setTimeout: 'readonly',
clearTimeout: 'readonly',
setInterval: 'readonly',
clearInterval: 'readonly',
Buffer: 'readonly',
__dirname: 'readonly',
NodeJS: 'readonly',
module: 'readonly',
require: 'readonly'
}
},
plugins: {
'@typescript-eslint': tseslint,
},
rules: {
...tseslint.configs.recommended.rules,
// Disable specific rules that are causing issues
'@typescript-eslint/no-explicit-any': 'off',
'@typescript-eslint/no-unused-vars': ['warn', {
'argsIgnorePattern': '^_',
'varsIgnorePattern': '^_'
}],
'no-irregular-whitespace': 'off'
},
},
{
ignores: [
'dist/**',
'node_modules/**',
'*.js',
'bin/**',
'tests/**/*.js',
'*.d.ts',
'.cursor/**'
]
}
];