eslint-interactive
Version:
The CLI tool to run `eslint --fix` for each rule
20 lines • 901 B
TypeScript
import type { Remote } from 'comlink';
import type { ESLint } from 'eslint';
import type { Action } from '../cli/prompt.js';
import type { SerializableCore } from '../core-worker.js';
import type { NextScene } from './index.js';
export type SelectActionArgs = {
/** The lint results of the project */
results: ESLint.LintResult[];
/** The rule ids that are in the `results`. */
ruleIdsInResults: string[];
/** The rule ids to perform the action. */
selectedRuleIds: string[];
/** The action to be initially selected. */
initialAction?: Action;
};
/**
* Run the scene where a user select the action to be performed for the problems of selected rules.
*/
export declare function selectAction(core: Remote<SerializableCore>, { results, ruleIdsInResults, selectedRuleIds, initialAction }: SelectActionArgs): Promise<NextScene>;
//# sourceMappingURL=select-action.d.ts.map