@gfdigital/eslint-config
Version:
A collection of opinionated best practice eslint configs
23 lines (22 loc) • 710 B
TypeScript
import type { Linter } from "eslint";
type GreenFlashTSOptions = {
/**
* The location of the tsconfigs that you wish to load in
*
* - `monorepo` Looks for the .tsconfig in all of the <root>/packages/<package>/tsconfig.json
* - `basic` - For apps / libraries that are standalone. Looks for the .tsconfig at <root>/tsconfig.json
*/
type: "monorepo" | "basic";
};
/**
* A function that returns an eslint config that will set
* linting standards for any combination of a node and react
* typescript project
*/
declare function ts(options: GreenFlashTSOptions): Linter.Config[];
declare const _default: {
configs: {
ts: typeof ts;
};
};
export default _default;