Require curly brackets in if statements when they're multi-line (#18387)

* Enable Curly rule

* Fix curly misuse
This commit is contained in:
Rijk van Zanten
2023-05-02 16:02:43 -04:00
committed by GitHub
parent 4e5d5093b3
commit 44b4863788
26 changed files with 109 additions and 42 deletions

View File

@@ -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':