feat: add prettier and eslint with pre-commit hook
This commit is contained in:
@@ -1,10 +1,10 @@
|
||||
export const parseClassList = (value: string | null): string[] => {
|
||||
if (!value) {
|
||||
return []
|
||||
return [];
|
||||
}
|
||||
|
||||
return value
|
||||
.split(' ')
|
||||
.map((entry: string): string => entry.trim())
|
||||
.filter((entry: string): boolean => entry.length > 0)
|
||||
}
|
||||
.filter((entry: string): boolean => entry.length > 0);
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user