Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Use 'defaultValue' instead of 'default'. #45

Closed
michaeljota opened this issue Jan 31, 2016 · 1 comment
Closed

Use 'defaultValue' instead of 'default'. #45

michaeljota opened this issue Jan 31, 2016 · 1 comment
Labels

Comments

@michaeljota
Copy link

Because 'default' it's a reserved word.

@scottwrobinson
Copy link
Owner

I don't really see a problem with this since the schema default won't ever interfere with JavaScript's default keyword. It would only be a problem if you used it as a variable name.

Some linters, like jshint, do highlight it as a keyword, but not because it shouldn't be used, but because their highlighting it fairly naive.

I'm going to leave this as is.

Thanks!

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

No branches or pull requests

2 participants