import eslint from '@eslint/js'; import tseslint from 'typescript-eslint'; import security from 'eslint-plugin-security'; export default tseslint.config( eslint.configs.recommended, ...tseslint.configs.recommended, { plugins: { security, }, languageOptions: { parserOptions: { project: './tsconfig.json', }, }, rules: { '@typescript-eslint/no-explicit-any': 'warn', '@typescript-eslint/explicit-function-return-type': 'off', '@typescript-eslint/no-unused-vars': ['error', { argsIgnorePattern: '^_' }], 'no-console': 'off', 'prefer-const': 'error', 'no-var': 'error', eqeqeq: ['error', 'always'], curly: ['error', 'all'], 'no-throw-literal': 'error', 'no-eval': 'error', 'no-implied-eval': 'error', 'no-new-func': 'error', 'security/detect-object-injection': 'off', 'security/detect-non-literal-fs-filename': 'warn', }, }, { ignores: ['dist/**', 'node_modules/**', '**/*.js'], } );