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
ignoreComments issue with some comments in Typescript #9933
Comments
Hi @ssannttoss, thanks for the issue. It looks like there's not enough information for us to know how to help you. If you're reporting a bug, please be sure to include:
Requesting a new rule? Please see Proposing a New Rule for instructions. Requesting a rule change? Please see Proposing a Rule Change for instructions. If it's something else, please just provide as much additional information as possible. Thanks! |
The version of ESLint you are using (run eslint -v) What you did (the source code and ESLint configuration) The actual ESLint output complete with numbers What you expected to happen instead |
Is there any more information needed to solve this issue? ESLint version:
Example with ESLint errors (source code):
Messages are: Example without ESLint errors:
Expectation: ESLint configuration:
Dependencies
|
Can this be reproduced outside of using typescript-eslint-parser? If not, I think it makes sense to open up an issue on the typescript-eslint-parser repository. My guess is that parser is creating an AST with either extra nodes or incorrect range/location information, resulting in indent autofix getting confused. |
@platinumazure thank you for your quick reply. I left out typescript-eslint-parser and this will indeed ignore the comment as expected. I will post the issue on the typescript-eslint-parser repository. |
This might be the same issue as eslint/typescript-eslint-parser#422. |
Is this worth keeping open to track this? Or should we go ahead and close now that there's a corresponding issue in typescript-eslint-parser. |
Unfortunately, it looks like there wasn't enough interest from the team Thanks for contributing to ESLint and we appreciate your understanding. |
#9018
#9752
ignoreComments not working with some comments
* @type {express.Application}
* @returns {void}
rules: indent: ["warn", 4, { "ignoreComments": true }] no-trailing-spaces: ["warn", { "ignoreComments": true }]
If I use the --fix the code brakes.
Bellow more issues after using --fix.
The text was updated successfully, but these errors were encountered: