@team23/eslint-config-team23-ts
Version:
A set of eslint rules used by TEAM23 for standard ts projects
31 lines • 1.11 kB
TypeScript
import type { Linter } from 'eslint';
interface ConfigOptions {
/**
* File glob patterns indicating the files that the configuration should be applied to.
*
* @default ['**\/*.?([cm])t', '**\/*.?([cm])tsx']
*/
files?: Array<string>;
/**
* Optional file extensions for non TypeScript languages, e.g. vue.
* Will automatically be added to linted files if not overwritten.
*
* @example ['vue']
*/
fileExtensions?: Array<string>;
/**
* Optional path to a TypeScript configuration file to use for the slower default project.
* See https://typescript-eslint.io/blog/announcing-typescript-eslint-v8/#project-service.
*/
tsconfigPath?: string;
}
/**
* Creates an ESLint configuration tailored for TypeScript projects with optional settings.
*
* @param [options] - Optional configuration settings.
*
* @returns Array of ESLint configuration objects.
*/
declare function createTSEslintConfig(options?: ConfigOptions): Array<Linter.Config>;
export { type ConfigOptions, createTSEslintConfig, };
//# sourceMappingURL=index.d.ts.map