-
Notifications
You must be signed in to change notification settings - Fork 2
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
Unable to parse namepath with readonly
#104
Comments
This has similar problems as #102 Imagine: The problem is that |
I ran into this error today in a typedef. We have an object with a property named "readonly" and I get this error. ESLint v7.7.0 Example: /**
* An object interface
* @typedef {Object} FooBar
* @property {boolean} readonly
* @property {boolean} private
* @property {boolean} public
* @property {boolean} constant
*/ Error:
My only workaround was to disable the /* eslint-disable jsdoc/valid-types */
/**
* An object interface
* @typedef {Object} FooBar
* @property {boolean} readonly
* @property {boolean} private
* @property {boolean} public
* @property {boolean} constant
*/
/* eslint-enable */ |
I also received this issue when defining an object with the property name "is" /**
* @param {object} props
* @param {string} props.is
*/
This workaround removed the ESLint error /**
* @param {object} props
* @param {string} props."is"
*/ Package Versions:
|
For |
The following should all be valid JSDoc:
in
jsdoc
ortypescript
(maybeclosure
too) mode but they fail to parse.When running
tryParse
with'readonly' or
'params.readonly'`, it errors with "Error: No parslet found for token: 'readonly' with value 'readonly'".Note that the following both run without error:
I believe this was caused by PR #98.
The text was updated successfully, but these errors were encountered: