ci: Migrate eslint-plugin-jsdoc rule and pin eslint versions

Pin eslint to v8 and eslint-plugin-jsdoc to v46, migrate the removed
jsdoc rule.

Part-of: <https://gitlab.gnome.org/GNOME/gnome-shell/-/merge_requests/2792>
This commit is contained in:
Evan Welsh 2023-06-06 23:23:54 -07:00 committed by Marge Bot
parent aac6970395
commit 39ed7f83fd
3 changed files with 7 additions and 4 deletions

View File

@ -49,7 +49,7 @@ workflow:
.gnome-shell.fedora:
variables:
FDO_DISTRIBUTION_VERSION: 38
FDO_DISTRIBUTION_TAG: '2023-04-21.1'
FDO_DISTRIBUTION_TAG: '2023-06-07.1'
FDO_DISTRIBUTION_PACKAGES:
gjs
nodejs
@ -62,7 +62,7 @@ workflow:
pkgconfig(json-glib-1.0)
FDO_DISTRIBUTION_EXEC: |
# For static analysis with eslint
npm install -g eslint eslint-plugin-jsdoc &&
npm install -g eslint@^8.0.0 eslint-plugin-jsdoc@^46.0.0 &&
dnf group install -y 'Development Tools' \
'C Development Tools and Libraries' &&

View File

@ -68,7 +68,10 @@ rules:
jsdoc/check-tag-names: error
jsdoc/check-types: error
jsdoc/implements-on-classes: error
jsdoc/newline-after-description: error
jsdoc/tag-lines:
- error
- any
- startLines: 1
jsdoc/require-jsdoc: error
jsdoc/require-param: error
jsdoc/require-param-description: error

View File

@ -12,7 +12,7 @@ rules:
jsdoc/check-tag-names: off
jsdoc/check-types: off
jsdoc/implements-on-classes: off
jsdoc/newline-after-description: off
jsdoc/tag-lines: off
jsdoc/require-jsdoc: off
jsdoc/require-param: off
jsdoc/require-param-description: off