You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+7-9Lines changed: 7 additions & 9 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -360,11 +360,9 @@ but restricted to `@param`. These settings are now deprecated.
360
360
when encountering the discouraged type and, if a type is to be preferred
361
361
in its place, the key `replacement` to indicate the type that should be
362
362
used in its place (and which `fix` mode can replace) or `false` if
363
-
forbidding the type. The message string will have the following
364
-
substrings with special meaning replaced with their corresponding
365
-
value (`{{tagName}}`, `{{tagValue}}`, `{{badType}}`, and
366
-
`{{preferredType}}` (or `{{replacement}}`), noting that the latter is
367
-
of no use when one is merely forbidding a type).
363
+
forbidding the type. The message string will have the substrings with
364
+
special meaning, `{{tagName}}` and `{{tagValue}}`, replaced with their
365
+
corresponding value.
368
366
369
367
Note that the preferred types indicated as targets in `settings.jsdoc.preferredTypes`
370
368
map will be assumed to be defined by `no-undefined-types`.
@@ -1693,7 +1691,7 @@ function qux(foo) {
1693
1691
*/
1694
1692
functionqux(foo) {
1695
1693
}
1696
-
// Settings: {"jsdoc":{"preferredTypes":{"abc":{"message":"Messed up JSDoc @{{tagName}}{{tagValue}} type \"{{badType}}\"; prefer: \"{{replacement}}\".","replacement":"Abc"},"string":"Str"}}}
1694
+
// Settings: {"jsdoc":{"preferredTypes":{"abc":{"message":"Messed up JSDoc @{{tagName}}{{tagValue}} type \"abc\"; prefer: \"Abc\".","replacement":"Abc"},"string":"Str"}}}
1697
1695
// Message: Messed up JSDoc @param "foo" type "abc"; prefer: "Abc".
1698
1696
1699
1697
/**
@@ -1703,23 +1701,23 @@ function qux(foo) {
1703
1701
*/
1704
1702
functionqux(foo, bar, baz) {
1705
1703
}
1706
-
// Settings: {"jsdoc":{"preferredTypes":{"abc":{"message":"Messed up JSDoc @{{tagName}}{{tagValue}} type \"{{badType}}\"; prefer: \"{{preferredType}}\".","replacement":"Abc"},"cde":{"message":"More messed up JSDoc @{{tagName}}{{tagValue}} type \"{{badType}}\"; prefer: \"{{preferredType}}\".","replacement":"Cde"},"object":"Object"}}}
1704
+
// Settings: {"jsdoc":{"preferredTypes":{"abc":{"message":"Messed up JSDoc @{{tagName}}{{tagValue}} type \"abc\"; prefer: \"Abc\".","replacement":"Abc"},"cde":{"message":"More messed up JSDoc @{{tagName}}{{tagValue}} type \"cde\"; prefer: \"Cde\".","replacement":"Cde"},"object":"Object"}}}
1707
1705
// Message: Messed up JSDoc @param "foo" type "abc"; prefer: "Abc".
1708
1706
1709
1707
/**
1710
1708
* @param{abc}foo
1711
1709
*/
1712
1710
functionqux(foo) {
1713
1711
}
1714
-
// Settings: {"jsdoc":{"preferredTypes":{"abc":{"message":"Messed up JSDoc @{{tagName}}{{tagValue}} type \"{{badType}}\".","replacement":false},"string":"Str"}}}
1712
+
// Settings: {"jsdoc":{"preferredTypes":{"abc":{"message":"Messed up JSDoc @{{tagName}}{{tagValue}} type \"abc\".","replacement":false},"string":"Str"}}}
1715
1713
// Message: Messed up JSDoc @param "foo" type "abc".
1716
1714
1717
1715
/**
1718
1716
* @param{abc}foo
1719
1717
*/
1720
1718
functionqux(foo) {
1721
1719
}
1722
-
// Settings: {"jsdoc":{"preferredTypes":{"abc":{"message":"Messed up JSDoc @{{tagName}}{{tagValue}} type \"{{badType}}\"."},"string":"Str"}}}
1720
+
// Settings: {"jsdoc":{"preferredTypes":{"abc":{"message":"Messed up JSDoc @{{tagName}}{{tagValue}} type \"abc\"."},"string":"Str"}}}
1723
1721
// Message: Messed up JSDoc @param "foo" type "abc".
0 commit comments