yup-method-phone Based on yup-phone by Abhisek Improvements Parameter re-arrangement, putting errorMessage first Empty phone is valid, so it can be chained to .required() Upgraded rollup plugins & config