mirror of
https://github.com/directus/directus.git
synced 2026-04-25 03:00:53 -04:00
Require curly brackets in if statements when they're multi-line (#18387)
* Enable Curly rule * Fix curly misuse
This commit is contained in:
@@ -4,8 +4,9 @@ export function getJSType(field: Field): string {
|
||||
if (
|
||||
Array.isArray(field.meta?.special) &&
|
||||
field.meta!.special.some((special) => ['m2o', 'o2m', 'm2m', 'm2a', 'files', 'translations'].includes(special))
|
||||
)
|
||||
) {
|
||||
return 'object';
|
||||
}
|
||||
|
||||
switch (field.type) {
|
||||
case 'bigInteger':
|
||||
|
||||
Reference in New Issue
Block a user