Initial implementation
This commit is contained in:
20
node_modules/@rushstack/eslint-patch/lib/eslint-bulk-suppressions/bulk-suppressions-file.d.ts
generated
vendored
Normal file
20
node_modules/@rushstack/eslint-patch/lib/eslint-bulk-suppressions/bulk-suppressions-file.d.ts
generated
vendored
Normal file
@@ -0,0 +1,20 @@
|
||||
export interface ISuppression {
|
||||
file: string;
|
||||
scopeId: string;
|
||||
rule: string;
|
||||
}
|
||||
export interface IBulkSuppressionsConfig {
|
||||
serializedSuppressions: Set<string>;
|
||||
jsonObject: IBulkSuppressionsJson;
|
||||
newSerializedSuppressions: Set<string>;
|
||||
newJsonObject: IBulkSuppressionsJson;
|
||||
}
|
||||
export interface IBulkSuppressionsJson {
|
||||
suppressions: ISuppression[];
|
||||
}
|
||||
export declare function getSuppressionsConfigForEslintConfigFolderPath(eslintConfigFolderPath: string): IBulkSuppressionsConfig;
|
||||
export declare function getAllBulkSuppressionsConfigsByEslintConfigFolderPath(): [string, IBulkSuppressionsConfig][];
|
||||
export declare function writeSuppressionsJsonToFile(eslintConfigFolderPath: string, suppressionsConfig: IBulkSuppressionsConfig): void;
|
||||
export declare function deleteBulkSuppressionsFileInEslintConfigFolder(eslintConfigFolderPath: string): void;
|
||||
export declare function serializeSuppression({ file, scopeId, rule }: ISuppression): string;
|
||||
//# sourceMappingURL=bulk-suppressions-file.d.ts.map
|
||||
Reference in New Issue
Block a user