Skip to content

Commit

Permalink
Cleanup based on feedback
Browse files Browse the repository at this point in the history
  • Loading branch information
nzakas committed Apr 16, 2022
1 parent 783464b commit 4426c5b
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 18 deletions.
14 changes: 1 addition & 13 deletions Makefile.js
Expand Up @@ -660,8 +660,7 @@ target.gensite = function(prereleaseVersion) {
sourcePath = path.join("lib/rules", sourceBaseName),
ruleName = path.basename(filename, ".md"),
filePath = path.posix.join("docs", path.relative("tmp", filename));
let text = cat(filename),
title;
let text = cat(filename);

process.stdout.write(`> Updating files (Steps 4-9): ${i}/${length} - ${filePath + " ".repeat(30)}\r`);

Expand All @@ -678,17 +677,6 @@ target.gensite = function(prereleaseVersion) {
.replace("<!--SUGGESTIONS-->", hasSuggestions ? HAS_SUGGESTIONS_TEXT : "")
.replace("<!--RECOMMENDED-->", isRecommended ? RECOMMENDED_TEXT : "");

title = `${ruleName}`;

} else {

// extract the title from the file itself
title = text.match(/#([^#].+)\n/u);
if (title) {
title = title[1].trim();
} else {
title = "Documentation";
}
}

// 6. Remove .md extension for relative links and change README to empty string
Expand Down
5 changes: 0 additions & 5 deletions docs/src/rules/generator-star.md
Expand Up @@ -2,7 +2,6 @@
title: generator-star
layout: doc
edit_link: https://github.com/eslint/eslint/edit/main/docs/src/rules/generator-star.md

---

Enforces consistent spacing around the asterisk in generator functions.
Expand Down Expand Up @@ -131,7 +130,3 @@ If your project will not be using generators you do not need this rule.
## Further Reading

* [Understanding ES6: Generators](https://leanpub.com/understandinges6/read/#leanpub-auto-generators)

## Resources

* [Documentation source](https://github.com/eslint/eslint/tree/HEAD/docs/src/rules/generator-star.md)

0 comments on commit 4426c5b

Please sign in to comment.