28 lines
813 B
JavaScript
28 lines
813 B
JavaScript
// @ts-check
|
|
// Flat config per current typescript-eslint quickstart: defineConfig from
|
|
// 'eslint/config' (the tseslint.config helper is deprecated).
|
|
// [source: context7 /typescript-eslint/typescript-eslint docs/getting-started/Quickstart.mdx, verified 2026-09-10]
|
|
import js from '@eslint/js';
|
|
import { defineConfig } from 'eslint/config';
|
|
import tseslint from 'typescript-eslint';
|
|
|
|
export default defineConfig(
|
|
{
|
|
ignores: ['dist/**', 'node_modules/**', 'coverage/**'],
|
|
},
|
|
{
|
|
files: ['**/*.ts'],
|
|
extends: [js.configs.recommended, tseslint.configs.recommended],
|
|
rules: {
|
|
'@typescript-eslint/no-unused-vars': [
|
|
'error',
|
|
{
|
|
argsIgnorePattern: '^_',
|
|
varsIgnorePattern: '^_',
|
|
caughtErrorsIgnorePattern: '^_',
|
|
},
|
|
],
|
|
},
|
|
},
|
|
);
|