We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
tsdoc/syntax
While most of my code is in TypeScript, I still have a few JSDoc-annotated JS files for configs. For example:
prettier.config.mjs
/** @type {import("prettier").Config} */ export default { ... };
This will cause the following lint error:
tsdoc-undefined-tag: The TSDoc tag "@type" is not defined in this configuration
I tried to look up for any solutions, but couldn't find any. Is there a reason why this lint is activated by default?
None
No response
/** @type {import("prettier").Config} */ export default {};
The text was updated successfully, but these errors were encountered:
@musjj it's currently targeting these files: [**/*{js,mjs,cjs,ts,mts,cts,jsx,tsx,mtsx,mjsx,astro}]
[**/*{js,mjs,cjs,ts,mts,cts,jsx,tsx,mtsx,mjsx,astro}]
I will update this to not include JS files (let me know if you want to PR this yourself, otherwise i'll probably PR this this weekend).
Sorry, something went wrong.
fix(config): don't run tsdoc rules on JS files
tsdoc
d8b183a
Fix: AndreaPontrandolfo#362
musjj
Successfully merging a pull request may close this issue.
Your environment
Describe the bug
While most of my code is in TypeScript, I still have a few JSDoc-annotated JS files for configs. For example:
prettier.config.mjs
This will cause the following lint error:
I tried to look up for any solutions, but couldn't find any. Is there a reason why this lint is activated by default?
Project
None
Minimal reproduction
No response
Steps to reproduce
prettier.config.mjs
Logs
Code of Conduct
I will submit a PR
The text was updated successfully, but these errors were encountered: