this is just for the repo, and not the workspace Co-authored-by: Rares Matei <matei.rar@gmail.com>
19 lines
368 B
TypeScript
19 lines
368 B
TypeScript
const VALID_STYLES = [
|
|
'css',
|
|
'scss',
|
|
'less',
|
|
'styl',
|
|
'styled-components',
|
|
'@emotion/styled',
|
|
'none',
|
|
];
|
|
export function assertValidStyle(style: string): void {
|
|
if (VALID_STYLES.indexOf(style) === -1) {
|
|
throw new Error(
|
|
`Unsupported style option found: ${style}. Valid values are: "${VALID_STYLES.join(
|
|
'", "'
|
|
)}"`
|
|
);
|
|
}
|
|
}
|