mirror of
https://github.com/chillpadclub/bedolaga-cabinet.git
synced 2026-07-28 17:43:47 +00:00
refactor: migrate to eslint flat config and format codebase with prettier
- Remove legacy .eslintrc.cjs and .eslintignore - Add eslint.config.js with flat config, security rules (no-eval, no-implied-eval, no-new-func, no-script-url) - Add .prettierrc and .prettierignore - Format entire codebase with prettier
This commit is contained in:
@@ -1,17 +1,17 @@
|
||||
import { ThemeColors } from '../types/theme'
|
||||
import { ThemeColors } from '../types/theme';
|
||||
|
||||
export interface ColorPreset {
|
||||
id: string
|
||||
name: string
|
||||
nameRu: string
|
||||
description: string
|
||||
descriptionRu: string
|
||||
colors: ThemeColors
|
||||
id: string;
|
||||
name: string;
|
||||
nameRu: string;
|
||||
description: string;
|
||||
descriptionRu: string;
|
||||
colors: ThemeColors;
|
||||
preview: {
|
||||
background: string
|
||||
accent: string
|
||||
text: string
|
||||
}
|
||||
background: string;
|
||||
accent: string;
|
||||
text: string;
|
||||
};
|
||||
}
|
||||
|
||||
export const COLOR_PRESETS: ColorPreset[] = [
|
||||
@@ -275,8 +275,8 @@ export const COLOR_PRESETS: ColorPreset[] = [
|
||||
text: '#f1f5f9',
|
||||
},
|
||||
},
|
||||
]
|
||||
];
|
||||
|
||||
export function getPresetById(id: string): ColorPreset | undefined {
|
||||
return COLOR_PRESETS.find((preset) => preset.id === id)
|
||||
return COLOR_PRESETS.find((preset) => preset.id === id);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user