Comments Rules
Comment spacing and format consistency
1 rules1 auto-isFixable
On This Page
comment-format
auto-isFixable
Space after //, space inside /* */, convert single-line blocks to //
Why: Consistent comment formatting improves readability
Correct
javascript
// This is a comment/* This is a block comment */Incorrect
javascript
//This is a comment/*No space*/eslint.config.js
javascript
"code-style/comment-format": "error"