Replace require() with import

This commit is contained in:
freearhey 2024-12-05 14:25:53 +03:00
parent 67cc28a408
commit ea14a63978
16 changed files with 93 additions and 74 deletions

View file

@ -0,0 +1,8 @@
import Joi from 'joi'
export default {
code: Joi.string()
.regex(/^[a-z]{3}$/)
.required(),
name: Joi.string().required()
}