Skip to content

Commit

Permalink
Bug 1862464 - Enable TypeScript style JSDoc definitions for jsdocs. r…
Browse files Browse the repository at this point in the history
…=mossop,webdriver-reviewers,fxview-reviewers,sclements

Differential Revision: https://phabricator.services.mozilla.com/D196539

UltraBlame original commit: 5f3d04265cbf1db34f23b4ad48e00875341c64cb
  • Loading branch information
marco-c committed Jan 1, 2024
1 parent cd0d9c8 commit f6b47fe
Show file tree
Hide file tree
Showing 4 changed files with 183 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -731,10 +731,12 @@ task
*
param
{
function
(
MozBrowser
)
=
>
any
}
taskFn
*
Expand Down
6 changes: 6 additions & 0 deletions remote/marionette/sync.sys.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -2420,6 +2420,8 @@ function
(
Event
)
:
void
}
fn
*
Expand Down Expand Up @@ -2693,6 +2695,8 @@ function
(
Message
)
:
boolean
=
}
options
Expand Down Expand Up @@ -3026,6 +3030,8 @@ function
string
object
)
:
boolean
=
}
options
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -237,5 +237,92 @@ check
error
"
}
settings
:
{
jsdoc
:
{
/
/
This
changes
what
'
s
allowed
in
JSDocs
enabling
more
type
-
inference
/
/
friendly
types
.
This
is
the
default
in
eslint
-
plugin
-
jsdoc
versions
/
/
since
May
2023
but
we
'
re
still
on
39
.
9
and
need
opt
-
in
for
now
.
/
/
https
:
/
/
github
.
com
/
gajus
/
eslint
-
plugin
-
jsdoc
/
issues
/
834
mode
:
"
typescript
"
}
}
}
;
87 changes: 87 additions & 0 deletions tools/lint/eslint/eslint-plugin-mozilla/lib/configs/valid-jsdoc.js
Original file line number Diff line number Diff line change
Expand Up @@ -230,5 +230,92 @@ types
error
"
}
settings
:
{
jsdoc
:
{
/
/
This
changes
what
'
s
allowed
in
JSDocs
enabling
more
type
-
inference
/
/
friendly
types
.
This
is
the
default
in
eslint
-
plugin
-
jsdoc
versions
/
/
since
May
2023
but
we
'
re
still
on
39
.
9
and
need
opt
-
in
for
now
.
/
/
https
:
/
/
github
.
com
/
gajus
/
eslint
-
plugin
-
jsdoc
/
issues
/
834
mode
:
"
typescript
"
}
}
}
;

0 comments on commit f6b47fe

Please sign in to comment.