Files
NapCatQQ/.pnpm-store/v3/files/5d/b966f4ca8b62938a17d4947cfa9bf51f4e69eaa1a5b97912e64215118a1bf4274d3070929e6e80d0dea8c9efbc1a2653f7c7f698bc6e3b52fcc55c05394dc4
TanTan e311ca3275
Build NapCat Artifacts / Windows Loader Test (push) Canceled after 0s
Build NapCat Artifacts / Type Check & Test (push) Canceled after 0s
Build NapCat Artifacts / Build NapCat.Framework (push) Canceled after 0s
Build NapCat Artifacts / Build NapCat.Shell (push) Canceled after 0s
docs: 仓库链接指向本镜像仓库
2026-11-13 09:25:58 +08: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;