Skip to content
This repository has been archived by the owner on Jan 8, 2024. It is now read-only.

Rules property in nuxt.config.js is not respected #29

Open
simplenotezy opened this issue Feb 27, 2020 · 3 comments
Open

Rules property in nuxt.config.js is not respected #29

simplenotezy opened this issue Feb 27, 2020 · 3 comments

Comments

@simplenotezy
Copy link

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.

@kuddl
Copy link

kuddl commented Apr 15, 2020

Any information on that??

@aaharu
Copy link
Contributor

aaharu commented Apr 15, 2020

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

nuxt-validate@1.0.1's source code is here.

@fabiofdsantos
Copy link

ping @lewyuburi

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants