base.js 782 B

12345678910111213141516171819202122232425262728
  1. // @ts-check
  2. import eslint from '@eslint/js';
  3. import tseslint from 'typescript-eslint';
  4. /** @type {import('eslint').Linter.Config[]} */
  5. export default tseslint.config(
  6. eslint.configs.recommended,
  7. ...tseslint.configs.recommendedTypeChecked,
  8. {
  9. languageOptions: {
  10. parserOptions: {
  11. projectService: true,
  12. },
  13. },
  14. rules: {
  15. '@typescript-eslint/no-unused-vars': [
  16. 'error',
  17. { argsIgnorePattern: '^_', varsIgnorePattern: '^_' },
  18. ],
  19. '@typescript-eslint/no-explicit-any': 'error',
  20. '@typescript-eslint/consistent-type-imports': 'error',
  21. 'no-console': ['warn', { allow: ['warn', 'error'] }],
  22. },
  23. },
  24. {
  25. ignores: ['**/dist/**', '**/build/**', '**/.next/**', '**/.turbo/**', '**/node_modules/**'],
  26. },
  27. );