Remove `lodash` (#12628)
* Replace `groupBy`
* Replace `partition`
* Replace `pick`
* Move `partition`
* Replace `uniqBy`
* Replace `fromPairs`
* Remove usage from website
* Reuse `partition`
* Remove from package.json
* Fix
* Use `ignore.default`
* Add `resolveConfig` to `FileInfoOptions`
* Explicit tuple types
* Make `cache` optional
* Fix cosmiconfig type
* Use `@ts-expect-error` for private property access
* Add type annotation for validate
* Fix type errors for `OptionInfo`
* Add `@ts-expect-error`
* Fix type of `normalizeOptions`
* Fix `OptionInfo` type
* Add `@ts-expect-error` for `option-normalizer`
* Avoid type error
* Fix typo
* Add types for lodash fns
Co-authored-by: fisker Cheung <lionkay@gmail.com>