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:
@@ -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
|
||||
|
||||
|
||||
Reference in New Issue
Block a user