Closed chizukicn closed 1 year ago
This PR will add version checking support for semver rules to isPackageExists. So that we can use it to achieve something like
semver
isPackageExists
const isVue2 = isPackageExists("vue", { version: ">2 || <3" }); export default { extends: [ isVue2 ? "plugin:vue/recommended" : "plugin:vue/vue3-recommended", ] }
Thanks, but no, it's beyond the scope of this package, and I don't want to introduce semver as a dep when it's not a core feature.
Description
This PR will add version checking support for
semver
rules toisPackageExists
. So that we can use it to achieve something likeLinked Issues
Additional context