-
Notifications
You must be signed in to change notification settings - Fork 0
Saving forms to DB #29
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: master
Are you sure you want to change the base?
Conversation
| obj[key] !== null && | ||
| !Array.isArray(obj[key]) | ||
| ) { | ||
| Object.assign(acc, flattenToDotNotation(obj[key], pre + key)); |
Check warning
Code scanning / ESLint
Disallow calling a function with a value with type `any` Warning
| ) { | ||
| Object.assign(acc, flattenToDotNotation(obj[key], pre + key)); | ||
| } else { | ||
| acc[pre + key] = obj[key]; |
Check warning
Code scanning / ESLint
Disallow assigning a value with type `any` to variables and properties Warning
| pipe( | ||
| query, | ||
| Object.entries, | ||
| (entries) => | ||
| entries.map(([key, value]) => [ | ||
| key, | ||
| value && typeof value === "object" | ||
| ? castQuery(value) | ||
| : typeof value === "string" && !isNaN(Number(value)) && value !== "" | ||
| ? Number(value) | ||
| : value === "true" | ||
| ? true | ||
| : value === "false" | ||
| ? false | ||
| : value, | ||
| ]), | ||
| Object.fromEntries, | ||
| ); |
Check warning
Code scanning / ESLint
Disallow returning a value with type `any` from a function Warning
| entries.map(([key, value]) => [ | ||
| key, | ||
| value && typeof value === "object" | ||
| ? castQuery(value) | ||
| : typeof value === "string" && !isNaN(Number(value)) && value !== "" | ||
| ? Number(value) | ||
| : value === "true" | ||
| ? true | ||
| : value === "false" | ||
| ? false | ||
| : value, | ||
| ]), |
Check warning
Code scanning / ESLint
Disallow returning a value with type `any` from a function Warning
| entries.map(([key, value]) => [ | ||
| key, | ||
| value && typeof value === "object" | ||
| ? castQuery(value) |
Check warning
Code scanning / ESLint
Disallow calling a function with a value with type `any` Warning
No description provided.