Installation
npm install --save @types/eslint__eslintrc
Summary
This package contains type definitions for @eslint/eslintrc (https://github.com/eslint/eslintrc#readme).
Details
Files were exported from https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/eslint__eslintrc.
import type { Linter } from "eslint";
export class FlatCompat {
constructor({
baseDirectory,
resolvePluginsRelativeTo,
recommendedConfig,
allConfig,
}?: {
/**
* default: process.cwd()
*/
baseDirectory?: string;
resolvePluginsRelativeTo?: string;
recommendedConfig?: Linter.LegacyConfig;
allConfig?: Linter.LegacyConfig;
});
config(eslintrcConfig: Linter.LegacyConfig): Linter.FlatConfig[];
env(envConfig: { [name: string]: boolean }): Linter.FlatConfig[];
extends(...configsToExtend: string[]): Linter.FlatConfig[];
plugins(...plugins: string[]): Linter.FlatConfig[];
}
Additional Details
- Last updated: Mon, 22 Jul 2024 16:38:53 GMT
- Dependencies: @types/eslint
Credits
These definitions were written by Gordon Ou.