nutjs-windows-control

by Cheffromspace
Verified
import eslint from '@eslint/js'; import tseslint from 'typescript-eslint'; export default tseslint.config( // Add explicit ignore for the config file itself to avoid type-checking it { ignores: ['eslint.config.js'], }, eslint.configs.recommended, ...tseslint.configs.recommended, ...tseslint.configs.recommendedTypeChecked, { languageOptions: { parserOptions: { project: true, tsconfigRootDir: import.meta.dirname, }, }, rules: { 'no-console': 'off', '@typescript-eslint/no-explicit-any': 'warn', '@typescript-eslint/explicit-module-boundary-types': 'error', '@typescript-eslint/no-unused-vars': ['error', { argsIgnorePattern: '^_' }], }, ignores: ['build/**', 'coverage/**', 'libnut-core/**'], }, { // Test files specific configuration files: ['**/*.test.ts', '**/*.spec.ts', '**/tests/**'], rules: { '@typescript-eslint/no-explicit-any': 'off', '@typescript-eslint/no-non-null-assertion': 'off', '@typescript-eslint/no-unsafe-assignment': 'off', '@typescript-eslint/no-unsafe-member-access': 'off', '@typescript-eslint/no-unsafe-call': 'off', '@typescript-eslint/no-unsafe-return': 'off', '@typescript-eslint/no-unsafe-argument': 'off', '@typescript-eslint/unbound-method': 'off', }, } );