nuxt-validate
nuxt-validate copied to clipboard
`Rules` property in nuxt.config.js is not respected
I have defined rules like so (two places, becasue I am unsure which -- not clear according to documentation):
['nuxt-validate', {
lang: 'en',
rules: ['email', 'min', 'max', 'confirmed', 'numeric'],
nuxti18n: {
locale: {
'da': 'da',
'en': 'en'
},
rules: ['email', 'min', 'max', 'confirmed', 'numeric']
},
mode: 'eager',
classes: {
valid: 'is-success',
invalid: 'is-danger'
}
// regular vee-validate options
// https://github.com/logaretm/vee-validate/blob/master/docs/configuration.md
}],
However, ALL rules are still being imported. For instance, I can use "digits" rule in my code without issues.
Any information on that??
#19 master branch's nuxt-validate is not released to npm. 😕
[email protected]
's source code is here.
ping @lewyuburi