Skip to content

Commit 068eef9

Browse files
committed
docs(tagNamePreference): Mention the effective defaults
docs(additionalTagNames.customTags): Remove "extends" which is already an allowed tag
1 parent a159ede commit 068eef9

File tree

2 files changed

+42
-2
lines changed

2 files changed

+42
-2
lines changed

.README/README.md

Lines changed: 21 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -136,6 +136,26 @@ Use `settings.jsdoc.tagNamePreference` to configure a preferred alias name for a
136136
}
137137
```
138138

139+
The defaults in `eslint-plugin-jsdoc` (for tags which offer
140+
aliases) are as follows:
141+
142+
- `@abstract` (over `@virtual`)
143+
- `@augments` (over `@extends`)
144+
- `@class` (over `@constructor`)
145+
- `@constant` (over `@const`)
146+
- `@default` (over `@defaultvalue`)
147+
- `@description` (over `@desc`)
148+
- `@external` (over `@host`)
149+
- `@file` (over `@fileoverview`, `@overview`)
150+
- `@fires` (over `@emits`)
151+
- `@function` (over `@func`, `@method`)
152+
- `@member` (over `@var`)
153+
- `@param` (over `@arg`, `@argument`)
154+
- `@property` (over `@prop`)
155+
- `@returns` (over `@return`)
156+
- `@throws` (over `@exception`)
157+
- `@yields` (over `@yield`)
158+
139159
This setting is utilized by the the rule for tag name checking
140160
(`check-tag-names`) as well as in the `@param` and `@require` rules:
141161

@@ -163,7 +183,7 @@ tags in the rule `check-tag-names`. The format of the configuration is as follow
163183
"settings": {
164184
"jsdoc": {
165185
"additionalTagNames": {
166-
"customTags": ["define", "extends", "record"]
186+
"customTags": ["define", "record"]
167187
}
168188
}
169189
}

README.md

Lines changed: 21 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -186,6 +186,26 @@ Use `settings.jsdoc.tagNamePreference` to configure a preferred alias name for a
186186
}
187187
```
188188

189+
The defaults in `eslint-plugin-jsdoc` (for tags which offer
190+
aliases) are as follows:
191+
192+
- `@abstract` (over `@virtual`)
193+
- `@augments` (over `@extends`)
194+
- `@class` (over `@constructor`)
195+
- `@constant` (over `@const`)
196+
- `@default` (over `@defaultvalue`)
197+
- `@description` (over `@desc`)
198+
- `@external` (over `@host`)
199+
- `@file` (over `@fileoverview`, `@overview`)
200+
- `@fires` (over `@emits`)
201+
- `@function` (over `@func`, `@method`)
202+
- `@member` (over `@var`)
203+
- `@param` (over `@arg`, `@argument`)
204+
- `@property` (over `@prop`)
205+
- `@returns` (over `@return`)
206+
- `@throws` (over `@exception`)
207+
- `@yields` (over `@yield`)
208+
189209
This setting is utilized by the the rule for tag name checking
190210
(`check-tag-names`) as well as in the `@param` and `@require` rules:
191211

@@ -214,7 +234,7 @@ tags in the rule `check-tag-names`. The format of the configuration is as follow
214234
"settings": {
215235
"jsdoc": {
216236
"additionalTagNames": {
217-
"customTags": ["define", "extends", "record"]
237+
"customTags": ["define", "record"]
218238
}
219239
}
220240
}

0 commit comments

Comments
 (0)