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