Skip to content

Commit 78f24ec

Browse files
Fix missing defined ESLint types instead of disabling rule.
Co-authored-by: Shyamsundar Gadde <[email protected]>
1 parent fab65d7 commit 78f24ec

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

.eslintrc.js

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,10 @@ const config = {
3030
{
3131
files: [ 'plugins/view-transitions/js/**/*.js' ],
3232
rules: {
33-
'jsdoc/no-undefined-types': 'off',
33+
'jsdoc/no-undefined-types': [
34+
'error',
35+
{ definedTypes: [ 'PageSwapEvent', 'PageRevealEvent' ] },
36+
],
3437
},
3538
},
3639
],

0 commit comments

Comments
 (0)