Files
agency/.pnpm-store/v3/files/5d/b966f4ca8b62938a17d4947cfa9bf51f4e69eaa1a5b97912e64215118a1bf4274d3070929e6e80d0dea8c9efbc1a2653f7c7f698bc6e3b52fcc55c05394dc4
hanzo-agent 5af6960b87 run project
Run: sess_f37640604ae254cb4d11dc6217f7b721
2026-09-30 00:04:56 +00:00

71 lines
2.1 KiB
Plaintext

import type { TSESLint } from '@typescript-eslint/utils';
export type InfiniteDepthConfigWithExtends = ConfigWithExtends | InfiniteDepthConfigWithExtends[];
export interface ConfigWithExtends extends TSESLint.FlatConfig.Config {
/**
* Allows you to "extend" a set of configs similar to `extends` from the
* classic configs.
*
* This is just a convenience short-hand to help reduce duplication.
*
* ```js
* export default tseslint.config({
* files: ['** /*.ts'],
* extends: [
* eslint.configs.recommended,
* tseslint.configs.recommended,
* ],
* rules: {
* '@typescript-eslint/array-type': 'error',
* '@typescript-eslint/consistent-type-imports': 'error',
* },
* })
*
* // expands to
*
* export default [
* {
* ...eslint.configs.recommended,
* files: ['** /*.ts'],
* },
* ...tseslint.configs.recommended.map(conf => ({
* ...conf,
* files: ['** /*.ts'],
* })),
* {
* files: ['** /*.ts'],
* rules: {
* '@typescript-eslint/array-type': 'error',
* '@typescript-eslint/consistent-type-imports': 'error',
* },
* },
* ]
* ```
*/
extends?: InfiniteDepthConfigWithExtends[];
}
export type ConfigArray = TSESLint.FlatConfig.ConfigArray;
/**
* Utility function to make it easy to strictly type your "Flat" config file
* @example
* ```js
* // @ts-check
*
* import eslint from '@eslint/js';
* import tseslint from 'typescript-eslint';
*
* export default tseslint.config(
* eslint.configs.recommended,
* tseslint.configs.recommended,
* {
* rules: {
* '@typescript-eslint/array-type': 'error',
* },
* },
* );
* ```
*
* @deprecated ESLint core now provides this functionality via `defineConfig()`,
* which we now recommend instead. See {@link https://typescript-eslint.io/packages/typescript-eslint/#config-deprecated}.
*/
export declare function config(...configs: InfiniteDepthConfigWithExtends[]): ConfigArray;