smart-renamer
Version:
🚀 Intelligent file and code naming suggestions based on project-specific naming conventions. Interactive CLI tool with AST-based code analysis for variables, functions, components, and more.
37 lines • 1.01 kB
TypeScript
export type NamingConvention = 'camelCase' | 'snake_case' | 'kebab-case' | 'PascalCase' | 'UPPER_SNAKE_CASE';
export interface CodeConventions {
variables: NamingConvention;
functions: NamingConvention;
components: NamingConvention;
constants: NamingConvention;
classes: NamingConvention;
interfaces: NamingConvention;
types: NamingConvention;
enums: NamingConvention;
}
export interface NamingConfig {
convention: NamingConvention;
files: string[];
folders?: NamingConvention;
exceptions?: string[];
code?: CodeConventions;
}
export interface FileInfo {
name: string;
path: string;
extension: string;
isDirectory: boolean;
}
export interface SuggestionResult {
original: string;
suggested: string;
convention: NamingConvention;
confidence: number;
}
export interface ValidationResult {
isValid: boolean;
expectedName?: string;
convention: NamingConvention;
message: string;
}
//# sourceMappingURL=index.d.ts.map