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

New Validation: Assignment of wrong type, according to JSDoc #31

Closed
p-bakker opened this issue Nov 26, 2014 · 3 comments
Closed

New Validation: Assignment of wrong type, according to JSDoc #31

p-bakker opened this issue Nov 26, 2014 · 3 comments

Comments

@p-bakker
Copy link

Produce a builder marker when a variable gets assigned a value of a type that is not the same as the type defined in the JSDoc

@p-bakker p-bakker changed the title Produce a builder marker when a variable gets assigned a value of a type that is not the same as the type defined in the JSDoc New Validation: Assignment of wrong type, according to JSDoc Nov 26, 2014
@p-bakker
Copy link
Author

Sample:

/**
 * @type {Boolean}
 */
var test

test = 'hello' //Raise warning

@angelozerr
Copy link
Owner

To support this issue, I need the following PR ternjs/tern#525 to know tha type comes from comment.

@angelozerr
Copy link
Owner

See https://github.com/angelozerr/tern-lint/wiki/Validation-JSDoc for configuration of JSDoc

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

No branches or pull requests

2 participants