|
| 1 | +import eslint from '@eslint/js'; |
| 2 | +import tseslint from 'typescript-eslint'; |
| 3 | +import globals from 'globals'; |
| 4 | + |
| 5 | +export default tseslint.config( |
| 6 | + { |
| 7 | + ignores: [ |
| 8 | + '**/node_modules/**', |
| 9 | + '**/dist/**', |
| 10 | + '**/build/**', |
| 11 | + '**/public/**', |
| 12 | + '**/coverage/**', |
| 13 | + '**/.understand-anything/**', |
| 14 | + '**/.claude-plugin/**', |
| 15 | + '**/.cursor-plugin/**', |
| 16 | + '**/.copilot-plugin/**', |
| 17 | + '**/.astro/**', |
| 18 | + '.private/**', |
| 19 | + ], |
| 20 | + }, |
| 21 | + eslint.configs.recommended, |
| 22 | + ...tseslint.configs.recommended, |
| 23 | + { |
| 24 | + languageOptions: { |
| 25 | + globals: { |
| 26 | + ...globals.node, |
| 27 | + }, |
| 28 | + }, |
| 29 | + rules: { |
| 30 | + '@typescript-eslint/no-unused-vars': [ |
| 31 | + 'error', |
| 32 | + { |
| 33 | + argsIgnorePattern: '^_', |
| 34 | + varsIgnorePattern: '^_', |
| 35 | + caughtErrorsIgnorePattern: '^_', |
| 36 | + destructuredArrayIgnorePattern: '^_', |
| 37 | + }, |
| 38 | + ], |
| 39 | + 'no-irregular-whitespace': ['error', { skipComments: true }], |
| 40 | + }, |
| 41 | + }, |
| 42 | + { |
| 43 | + files: ['understand-anything-plugin/packages/dashboard/**/*.{ts,tsx,js,jsx}'], |
| 44 | + languageOptions: { |
| 45 | + globals: { |
| 46 | + ...globals.browser, |
| 47 | + }, |
| 48 | + }, |
| 49 | + }, |
| 50 | + { |
| 51 | + files: ['**/*.test.ts', '**/*.test.tsx', '**/*.test.mjs', '**/__tests__/**/*.{ts,tsx,mjs}'], |
| 52 | + rules: { |
| 53 | + '@typescript-eslint/no-explicit-any': 'off', |
| 54 | + }, |
| 55 | + }, |
| 56 | +); |
0 commit comments