@nx/eslint
Version:
12 lines (11 loc) • 428 B
TypeScript
import { Tree } from '@nx/devkit';
import { ESLint } from 'eslint';
/**
* Converts an ESLint JSON config to a flat config.
* Deletes the original file along with .eslintignore if it exists.
*/
export declare function convertEslintJsonToFlatConfig(tree: Tree, root: string, config: ESLint.ConfigData, ignorePaths: string[], format: 'cjs' | 'mjs'): {
content: string;
addESLintRC: boolean;
addESLintJS: boolean;
};