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
considerComments
require
The option considerComments doesn't seem to work with require statements. For example, with the following configuration:
"import/newline-after-import": ["warn", { count: 2, considerComments: true }]
These are considered valid:
const fs = require("fs"); // Test comment const FOO = true;
const fs = require("fs"); /** * Test comment */ const FOO = true;
While they should be:
It works as it should with import statements.
import
The text was updated successfully, but these errors were encountered:
newline-after-import
Successfully merging a pull request may close this issue.
The option
considerComments
doesn't seem to work withrequire
statements. For example, with the following configuration:These are considered valid:
While they should be:
It works as it should with
import
statements.The text was updated successfully, but these errors were encountered: