Skip to content

Commit 58f2269

Browse files
authored
Merge pull request #155 from bmish/marker-auto-generated
2 parents 1297a5b + 6f4b370 commit 58f2269

File tree

4 files changed

+199
-176
lines changed

4 files changed

+199
-176
lines changed

README.md

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -45,8 +45,8 @@ Add scripts to `package.json` (both a lint script to ensure everything is up-to-
4545
Delete any old rules list from your `README.md`. A new one will be automatically added to your `## Rules` section (along with the following marker comments if they don't already exist):
4646

4747
```md
48-
<!-- begin rules list -->
49-
<!-- end rules list -->
48+
<!-- begin auto-generated rules list -->
49+
<!-- end auto-generated rules list -->
5050
```
5151

5252
Delete any old recommended/fixable/etc. notices from your rule docs. A new title and notices will be automatically added to the top of each rule doc (along with a marker comment if it doesn't exist yet).
@@ -86,7 +86,7 @@ Generated content in a rule doc (everything above the marker comment) (intention
8686

8787
❌ This rule is deprecated. It was replaced by [prefer-bar](prefer-bar.md).
8888

89-
<!-- end rule header -->
89+
<!-- end auto-generated rule header -->
9090

9191
Description.
9292

@@ -104,7 +104,7 @@ Generated rules table in `README.md` (everything between the marker comments) (i
104104

105105
## Rules
106106

107-
<!-- begin rules list -->
107+
<!-- begin auto-generated rules list -->
108108

109109
💼 Configurations enabled in.\
110110
✅ Enabled in the `recommended` configuration.\
@@ -124,7 +124,7 @@ Generated rules table in `README.md` (everything between the marker comments) (i
124124
| [prefer-bar](docs/rules/prefer-bar.md) | enforce using bar | ✅ 🎨 | | 💡 | 💭 | 📖 | |
125125
| [require-baz](docs/rules/require-baz.md) | require using baz | | 🔧 | | | 📏 | ❌ |
126126

127-
<!-- end rules list -->
127+
<!-- end auto-generated rules list -->
128128

129129
...
130130
```

lib/markers.ts

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
// Markers so that the README rules list can be automatically updated.
2-
export const BEGIN_RULE_LIST_MARKER = '<!-- begin rules list -->';
3-
export const END_RULE_LIST_MARKER = '<!-- end rules list -->';
2+
export const BEGIN_RULE_LIST_MARKER =
3+
'<!-- begin auto-generated rules list -->';
4+
export const END_RULE_LIST_MARKER = '<!-- end auto-generated rules list -->';
45

56
// Marker so that rule doc header (title/notices) can be automatically updated.
6-
export const END_RULE_HEADER_MARKER = '<!-- end rule header -->';
7+
export const END_RULE_HEADER_MARKER = '<!-- end auto-generated rule header -->';

0 commit comments

Comments
 (0)