]> git.proxmox.com Git - pve-eslint.git/blobdiff - eslint/lib/rules/spaced-comment.js
import 8.23.1 source
[pve-eslint.git] / eslint / lib / rules / spaced-comment.js
index 674c13cf3807ec6378544ec3324bd85589fe9885..6aedeae871d7ba98579e758ef972500e2f80cae6 100644 (file)
@@ -39,7 +39,7 @@ function escapeAndRepeat(s) {
 function parseMarkersOption(markers) {
 
     // `*` is a marker for JSDoc comments.
-    if (markers.indexOf("*") === -1) {
+    if (!markers.includes("*")) {
         return markers.concat("*");
     }
 
@@ -152,7 +152,7 @@ module.exports = {
         type: "suggestion",
 
         docs: {
-            description: "enforce consistent spacing after the `//` or `/*` in a comment",
+            description: "Enforce consistent spacing after the `//` or `/*` in a comment",
             recommended: false,
             url: "https://eslint.org/docs/rules/spaced-comment"
         },