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
Function straight after "require" adds "ccccccccccccccccc" before require argument when using eslint to format with this plugin on vscode #697
Function straight after "require" adds "ccccccccccccccccc" before require argument when using eslint to format with this plugin on vscode #697
Comments
Yeah, I believe this was fixed with the code in v31.3.1. I believe if you were to test against that version, your The problem was that in skipping past potential decorators (so as to put jsdoc blocks above them), when projects do not use semi-colons (whose presence informs us that we don't need to keep looking for a decorator), our approach in v31.3.1 can end up going back rather far, as can be a problem for performance in large files. I expect it could be much faster to iterate through the |
🎉 This issue has been resolved in version 32.0.3 🎉 The release is available on: Your semantic-release bot 📦🚀 |
Problem
When using this great plugin, formatting the document using eslint in visual code messes up, but ONLY when I declare a function after a require. So....
Outputs this when formatting using eslint:
But if I add
const test = true
betweenrequire
andfunction
, it's OK.So
formats as
ESLint Config
Environment
eslint-plugin-jsdoc
version: 32.0.2VSCODE
Version: 1.53.2 (user setup)
Commit: 622cb03f7e070a9670c94bae1a45d78d7181fbd4
Date: 2021-02-11T11:48:04.245Z
Electron: 11.2.1
Chrome: 87.0.4280.141
Node.js: 12.18.3
V8: 8.7.220.31-electron.0
OS: Windows_NT x64 10.0.19042
The text was updated successfully, but these errors were encountered: