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
no-inline-comments
Consider the following example code:
const obj = { a: 1, b: true, c: 'string', // this one is special }
The inline comment there is not allowed, instead, it expects you to move it above it:
const obj = { a: 1, b: true, // this one is special c: 'string', }
While in general I appreciate what it tries to prevent:
However, often in cases when having a more structured code (like options objects) with small annotation comments, it really gets in the way.
👍 = keep 👎 = remove 👀 = no opinion
The text was updated successfully, but these errors were encountered:
I don't think we should allow inline comments, I prefer the consistency of all comments on a new line.
In what scenario are small annotation comments really necessary? If a comment is really that small, shouldn't it be part of the variable name instead?
Sorry, something went wrong.
No branches or pull requests
Consider the following example code:
The inline comment there is not allowed, instead, it expects you to move it above it:
While in general I appreciate what it tries to prevent:
However, often in cases when having a more structured code (like options objects) with small annotation comments, it really gets in the way.
👍 = keep
👎 = remove
👀 = no opinion
The text was updated successfully, but these errors were encountered: