chore(eslint): curly [skip-lint] (#7959)

Now enforcing curly brackets on all if statements. Includes auto-fixer.


```ts
//  Bad
if (foo) foo++;

//  Good
if (foo) {
  foo++;
}
```




Note: this did not lint the `drizzle` package or any `db-*` packages.
This will be done in the future.
This commit is contained in:
Elliot DeNolf
2024-08-29 10:15:36 -04:00
committed by GitHub
parent dd3d985091
commit 142616e6ad
267 changed files with 1681 additions and 611 deletions

View File

@@ -58,7 +58,9 @@ export async function afterRead<T extends JsonObject>(args: Args<T>): Promise<T>
incomingDepth || incomingDepth === 0
? parseInt(String(incomingDepth), 10)
: req.payload.config.defaultDepth
if (depth > req.payload.config.maxDepth) depth = req.payload.config.maxDepth
if (depth > req.payload.config.maxDepth) {
depth = req.payload.config.maxDepth
}
const currentDepth = incomingCurrentDepth || 1