nuxt-validate icon indicating copy to clipboard operation
nuxt-validate copied to clipboard

`Rules` property in nuxt.config.js is not respected

Open simplenotezy opened this issue 5 years ago • 3 comments

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.

simplenotezy avatar Feb 27 '20 15:02 simplenotezy

Any information on that??

kuddl avatar Apr 15 '20 07:04 kuddl

#19 master branch's nuxt-validate is not released to npm. 😕

[email protected]'s source code is here.

aaharu avatar Apr 15 '20 07:04 aaharu

ping @lewyuburi

fabiofdsantos avatar Sep 11 '20 14:09 fabiofdsantos