eslint-plugin-sonarjs
Version:
SonarJS rules for ESLint
20 lines (19 loc) • 537 B
TypeScript
import type { vol } from 'memfs';
interface Stats {
isFile(): boolean;
}
export interface Filesystem {
readdirSync: (typeof vol)['readdirSync'];
readFileSync(path: string): Buffer | string;
statSync(path: string): Stats;
}
export interface File {
readonly path: string;
readonly content: Buffer | string;
}
export type FindUp = (from: string, to?: string, filesystem?: Filesystem) => Array<File>;
/**
* Create an instance of FindUp.
*/
export declare const createFindUp: (pattern: string) => FindUp;
export {};