mirror of
https://github.com/Tria-plc/emaui.git
synced 2026-08-29 07:11:00 +00:00
31 lines
2.1 KiB
TypeScript
31 lines
2.1 KiB
TypeScript
import { type GeneratorCallback, type Tree } from '@nx/devkit';
|
|
import type { Linter } from 'eslint';
|
|
export declare function findEslintFile(tree: Tree, projectRoot?: string): string | null;
|
|
export declare function isEslintConfigSupported(tree: Tree, projectRoot?: string): boolean;
|
|
export declare function updateRelativePathsInConfig(tree: Tree, sourcePath: string, destinationPath: string): void;
|
|
export declare function determineEslintConfigFormat(content: string): 'mjs' | 'cjs';
|
|
export declare function addOverrideToLintConfig(tree: Tree, root: string, override: Partial<Linter.ConfigOverride<Linter.RulesRecord>>, options?: {
|
|
insertAtTheEnd?: boolean;
|
|
checkBaseConfig?: boolean;
|
|
}): void;
|
|
export declare function updateOverrideInLintConfig(tree: Tree, rootOrFile: string, lookup: (override: Linter.ConfigOverride<Linter.RulesRecord>) => boolean, update: (override: Linter.ConfigOverride<Linter.RulesRecord>) => Linter.ConfigOverride<Linter.RulesRecord>): void;
|
|
export declare function lintConfigHasOverride(tree: Tree, rootOrFile: string, lookup: (override: Linter.ConfigOverride<Linter.RulesRecord>) => boolean, checkBaseConfig?: boolean): boolean;
|
|
export declare function replaceOverridesInLintConfig(tree: Tree, root: string, overrides: Linter.ConfigOverride<Linter.RulesRecord>[]): void;
|
|
export declare function addExtendsToLintConfig(tree: Tree, root: string, plugin: string | {
|
|
name: string;
|
|
needCompatFixup: boolean;
|
|
} | Array<string | {
|
|
name: string;
|
|
needCompatFixup: boolean;
|
|
}>, insertAtTheEnd?: boolean): GeneratorCallback;
|
|
export declare function addPredefinedConfigToFlatLintConfig(tree: Tree, root: string, predefinedConfigName: string, options?: {
|
|
moduleName?: string;
|
|
moduleImportPath?: string;
|
|
spread?: boolean;
|
|
insertAtTheEnd?: boolean;
|
|
checkBaseConfig?: boolean;
|
|
}): void;
|
|
export declare function addPluginsToLintConfig(tree: Tree, root: string, plugin: string | string[]): void;
|
|
export declare function addIgnoresToLintConfig(tree: Tree, root: string, ignorePatterns: string[]): void;
|
|
export declare function getPluginImport(pluginName: string): string;
|
|
//# sourceMappingURL=eslint-file.d.ts.map
|