@dscodotco/theme-cli
Version:
A CLI tool for developing Shopify themes
52 lines (51 loc) • 1.12 kB
TypeScript
interface CheckSummary {
errorCount: number;
warningCount: number;
suggestionCount: number;
checkedFiles: number;
}
interface FormattedResults {
errors: Array<{
file: string;
check: string;
message: string;
line: number;
column: number;
}>;
warnings: Array<{
file: string;
check: string;
message: string;
line: number;
column: number;
}>;
suggestions: Array<{
file: string;
check: string;
message: string;
line: number;
column: number;
}>;
summary: CheckSummary;
}
export declare class ThemeChecker {
private themeDir;
constructor(themeDir: string);
/**
* Check the entire theme for issues
*/
checkTheme(): Promise<FormattedResults>;
/**
* Check specific files in the theme
*/
checkFiles(files: string[]): Promise<FormattedResults>;
/**
* Check a single file
*/
private checkFile;
/**
* Format check results into a more usable structure
*/
private formatResults;
}
export {};