function parseMarkersOption(markers) {
// `*` is a marker for JSDoc comments.
- if (markers.indexOf("*") === -1) {
+ if (!markers.includes("*")) {
return markers.concat("*");
}
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"
},