mirror of
https://github.com/cursor/plugins.git
synced 2026-09-14 20:00:00 +08:00
0877f223a0
- Add complete plugin structure following boilerplate pattern - Include Nord-inspired color palette with semantic color mappings - Add 6 chart component templates: Pie, Bar, StackedArea, Comparison, DualAxis, Heatmap - Include shared utilities for data transformation and filtering - Add Highcharts best practices and accessibility rules - Add chart-builder agent for generating visualizations - Include comprehensive skill documentation with usage examples Co-authored-by: kniparko <kniparko@anysphere.co>
18 lines
716 B
Bash
18 lines
716 B
Bash
#!/bin/bash
|
|
# Validate chart files follow design system patterns
|
|
# This is a placeholder script - customize for your needs
|
|
|
|
echo "Validating chart components..."
|
|
|
|
# Check for hardcoded colors (should use COLORS from chart-constants)
|
|
if grep -r "color: \"#" --include="*.tsx" --include="*.ts" ./src/components/charts 2>/dev/null; then
|
|
echo "Warning: Found hardcoded colors. Consider using COLORS from chart-constants.ts"
|
|
fi
|
|
|
|
# Check for animation: true (should be false in production)
|
|
if grep -r "animation: true" --include="*.tsx" --include="*.ts" ./src/components/charts 2>/dev/null; then
|
|
echo "Warning: Found animation: true. Consider disabling animation for production."
|
|
fi
|
|
|
|
echo "Chart validation complete."
|