line-comment-position
eslint
No autofix
eslint.config.js
export default [
{
rules: {
"line-comment-position": "error",
},
},
];This rule is deprecated. Check its documentation for a replacement before enabling it.
1 + 1; // invalid comment// invalid comment
1 + 1;1 + 1; // invalid comment// valid comment
1 + 1;1 + 1; // valid comment1 + 1; // pragma valid commentExamples from the ESLint documentation.
No tracked preset enables this rule, so it has no reach yet.
None of the tracked presets enable this rule. Turn it on with the config below.
line-comment-position
eslint
export default [
{
rules: {
"line-comment-position": "error",
},
},
];Oxlint does not have this rule.
Biome does not have this rule.