capitalized-comments
eslint
Safe autofix
eslint.config.js
export default [
{
rules: {
"capitalized-comments": "error",
},
},
];Enforce or disallow capitalization of the first letter of a comment
// lowercase comment// Capitalized comment
// 1. Non-letter at beginning of comment
// 丈 Non-Latin character at beginning of comment
/* istanbul ignore next */
/* jscs:enable */
/* jshint asi:true */
/* global foo */
/* globals foo */
/* exported myVar */
// https://github.com
/* eslint semi:2 */
/* eslint-disable */
foo
/* eslint-enable */
// eslint-disable-next-line
baz
bar // eslint-disable-lineExamples from the ESLint documentation.
capitalized-comments
eslint
export default [
{
rules: {
"capitalized-comments": "error",
},
},
];capitalized-comments
eslint plugin · style
{
"rules": {
"capitalized-comments": "error"
}
}Biome does not have this rule.
Disallow shorthand type conversions
Enforce a maximum number of parameters in function definitions
Enforce a maximum number of lines per file
Enforce a maximum depth that blocks can be nested
Disallow use of this in contexts where the value of this is undefined
Disallow assignments that can lead to race conditions due to usage of await or yield