@@ -1584,6 +1584,16 @@ See the "Destructuring" section. Defaults to `false`.
1584
1584
1585
1585
See ` require-param ` under the option of the same name.
1586
1586
1587
+ <a name =" eslint-plugin-jsdoc-rules-check-param-names-options-3-enablefixer " ></a >
1588
+ ##### <code >enableFixer</code >
1589
+
1590
+ Set to ` false ` to avoid auto-removing ` @param ` 's duplicates (based on
1591
+ identical names).
1592
+
1593
+ Note that, by default, duplicates of the same name are removed even if
1594
+ the definitions do not match in other ways (e.g., the second param will
1595
+ be removed even if it has a different type or description).
1596
+
1587
1597
<a name =" eslint-plugin-jsdoc-rules-check-param-names-options-3-allowextratrailingparamdocs " ></a >
1588
1598
##### <code >allowExtraTrailingParamDocs</code >
1589
1599
@@ -1719,6 +1729,17 @@ function quux ({foo}) {
1719
1729
}
1720
1730
// Message: Duplicate @param "cfg.foo"
1721
1731
1732
+ /**
1733
+ * @param cfg
1734
+ * @param cfg.foo
1735
+ * @param cfg.foo
1736
+ */
1737
+ function quux ({foo}) {
1738
+
1739
+ }
1740
+ // Options: [{"enableFixer":false}]
1741
+ // Message: Duplicate @param "cfg.foo"
1742
+
1722
1743
/**
1723
1744
* @param cfg
1724
1745
* @param cfg.foo
@@ -2088,9 +2109,20 @@ and that nested properties have defined roots.
2088
2109
<a name =" eslint-plugin-jsdoc-rules-check-property-names-options-4 " ></a >
2089
2110
#### Options
2090
2111
2112
+ <a name =" eslint-plugin-jsdoc-rules-check-property-names-options-4-enablefixer-1 " ></a >
2113
+ ##### <code >enableFixer</code >
2114
+
2115
+ Set to ` false ` to avoid auto-removing ` @property ` 's duplicates (based on
2116
+ identical names).
2117
+
2118
+ Note that, by default, duplicates of the same name are removed even if
2119
+ the definitions do not match in other ways (e.g., the second property will
2120
+ be removed even if it has a different type or description).
2121
+
2091
2122
|||
2092
2123
| ---| ---|
2093
2124
| Context| Everywhere|
2125
+ | Options| ` enableFixer ` |
2094
2126
| Tags| ` property ` |
2095
2127
2096
2128
The following patterns are considered problems:
@@ -2132,6 +2164,14 @@ The following patterns are considered problems:
2132
2164
*/
2133
2165
// Message: Duplicate @property "foo"
2134
2166
2167
+ /**
2168
+ * @typedef (SomeType) SomeTypedef
2169
+ * @property foo
2170
+ * @property foo
2171
+ */
2172
+ // Options: [{"enableFixer":false}]
2173
+ // Message: Duplicate @property "foo"
2174
+
2135
2175
/**
2136
2176
* @typedef (SomeType) SomeTypedef
2137
2177
* @property cfg
@@ -9485,7 +9525,7 @@ function signature, it may appear that there is an actual property named
9485
9525
9486
9526
An options object accepts the following optional properties:
9487
9527
9488
- <a name="eslint-plugin-jsdoc-rules-require-param-options-23-enablefixer"></a>
9528
+ <a name="eslint-plugin-jsdoc-rules-require-param-options-23-enablefixer-2 "></a>
9489
9529
##### <code>enableFixer</code>
9490
9530
9491
9531
Whether to enable the fixer. Defaults to ` true ` .
0 commit comments