Skip to content

Commit 30bff5b

Browse files
authored
fix: bump jsdocs to allow node 20 (#142)
* fix: bump jsdocs to allow node 20 * chore: disable deprecated rule * fix: update base eslint config, fix linting * chore: ignore
1 parent 25487ff commit 30bff5b

File tree

7 files changed

+63
-30
lines changed

7 files changed

+63
-30
lines changed

.eslintrc.js

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -7,8 +7,8 @@
77
module.exports = {
88
extends: ['eslint-config-salesforce-typescript', 'eslint-config-salesforce-license'],
99
rules: {
10-
"@typescript-eslint/no-unsafe-argument": "off",
11-
"@typescript-eslint/prefer-includes": "off",
12-
"class-methods-use-this": "off"
13-
}
10+
'@typescript-eslint/no-unsafe-argument': 'off',
11+
'@typescript-eslint/prefer-includes': 'off',
12+
'class-methods-use-this': 'off',
13+
},
1414
};

package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -32,12 +32,12 @@
3232
"chai": "^4.3.4",
3333
"eslint": "^8.23.0",
3434
"eslint-config-prettier": "^8.5.0",
35-
"eslint-config-salesforce": "^1.1.0",
35+
"eslint-config-salesforce": "^2.0.2",
3636
"eslint-config-salesforce-license": "^0.1.6",
3737
"eslint-config-salesforce-typescript": "^1.1.1",
3838
"eslint-plugin-header": "^3.0.0",
3939
"eslint-plugin-import": "2.26.0",
40-
"eslint-plugin-jsdoc": "^39.3.6",
40+
"eslint-plugin-jsdoc": "^46.8.2",
4141
"eslint-plugin-prettier": "^4.2.1",
4242
"husky": "^8.0.1",
4343
"isbinaryfile": "^5.0.0",

src/commands/force/lightning/lwc/test/setup.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ import * as path from 'path';
1010
import { SfdxCommand } from '@salesforce/command';
1111
import { Messages, SfError } from '@salesforce/core';
1212
import semverCompare = require('semver-compare');
13-
import { FileWriter } from '../../../../../lib/fileWriter';
13+
import { FileWriter } from '../../../../../shared/fileWriter';
1414

1515
Messages.importMessagesDirectory(__dirname);
1616
const messages = Messages.loadMessages('@salesforce/sfdx-plugin-lwc-test', 'setup');
File renamed without changes.

test/commands/lwc/test/run.test.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@ import { expect, test } from '@salesforce/command/lib/test';
1111
import { testSetup } from '@salesforce/core/lib/testSetup';
1212
import { stubMethod } from '@salesforce/ts-sinon';
1313

14+
// eslint-disable-next-line
1415
import Run from '../../../../lib/commands/force/lightning/lwc/test/run';
1516

1617
// Mock all things in core, like api, file io, etc.

test/commands/lwc/test/setup.test.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@ import { expect, test } from '@salesforce/command/lib/test';
1111
import { testSetup } from '@salesforce/core/lib/testSetup';
1212
import { stubMethod } from '@salesforce/ts-sinon';
1313
import { SinonStub } from 'sinon';
14+
// eslint-disable-next-line
1415
import Setup from '../../../../lib/commands/force/lightning/lwc/test/setup';
1516

1617
// Mock all things in core, like api, file io, etc.

yarn.lock

Lines changed: 54 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -389,14 +389,14 @@
389389
esquery "^1.4.0"
390390
jsdoc-type-pratt-parser "1.0.4"
391391

392-
"@es-joy/jsdoccomment@~0.31.0":
393-
version "0.31.0"
394-
resolved "https://registry.yarnpkg.com/@es-joy/jsdoccomment/-/jsdoccomment-0.31.0.tgz#dbc342cc38eb6878c12727985e693eaef34302bc"
395-
integrity sha512-tc1/iuQcnaiSIUVad72PBierDFpsxdUHtEF/OrfqvM1CBAsIoMP51j52jTMb3dXriwhieTo289InzZj72jL3EQ==
392+
"@es-joy/jsdoccomment@~0.40.1":
393+
version "0.40.1"
394+
resolved "https://registry.yarnpkg.com/@es-joy/jsdoccomment/-/jsdoccomment-0.40.1.tgz#13acd77fb372ed1c83b7355edd865a3b370c9ec4"
395+
integrity sha512-YORCdZSusAlBrFpZ77pJjc5r1bQs5caPWtAu+WWmiSo+8XaUzseapVrfAtiRFbQWnrBxxLLEwF6f6ZG/UgCQCg==
396396
dependencies:
397-
comment-parser "1.3.1"
398-
esquery "^1.4.0"
399-
jsdoc-type-pratt-parser "~3.1.0"
397+
comment-parser "1.4.0"
398+
esquery "^1.5.0"
399+
jsdoc-type-pratt-parser "~4.0.0"
400400

401401
"@eslint/eslintrc@^0.4.3":
402402
version "0.4.3"
@@ -1904,6 +1904,11 @@ archy@^1.0.0:
19041904
resolved "https://registry.yarnpkg.com/archy/-/archy-1.0.0.tgz#f9c8c13757cc1dd7bc379ac77b2c62a5c2868c40"
19051905
integrity sha512-Xg+9RwCg/0p32teKdGMPTPnVXKD0w3DfHnFTficozsAgsvq2XenPJq/MYpzzQ/v8zrOyJn6Ds39VA4JIDwFfqw==
19061906

1907+
are-docs-informative@^0.0.2:
1908+
version "0.0.2"
1909+
resolved "https://registry.yarnpkg.com/are-docs-informative/-/are-docs-informative-0.0.2.tgz#387f0e93f5d45280373d387a59d34c96db321963"
1910+
integrity sha512-ixiS0nLNNG5jNQzgZJNoUpBKdo9yTYZMGJ+QgT2jmjR7G7+QHRCc4v6LQ3NgE7EBJq+o0ams3waJwkrlBom8Ig==
1911+
19071912
are-we-there-yet@^2.0.0:
19081913
version "2.0.0"
19091914
resolved "https://registry.yarnpkg.com/are-we-there-yet/-/are-we-there-yet-2.0.0.tgz#372e0e7bd279d8e94c653aaa1f67200884bf3e1c"
@@ -2167,6 +2172,11 @@ buffer@^6.0.3:
21672172
base64-js "^1.3.1"
21682173
ieee754 "^1.2.1"
21692174

2175+
builtin-modules@^3.3.0:
2176+
version "3.3.0"
2177+
resolved "https://registry.yarnpkg.com/builtin-modules/-/builtin-modules-3.3.0.tgz#cae62812b89801e9656336e46223e030386be7b6"
2178+
integrity sha512-zhaCDicdLuWN5UbN5IMnFqNMhNfo919sH85y2/ea+5Yg9TsTkeZxpL+JLbp6cgYFS4sRLp3YV4S6yDuqVWHYOw==
2179+
21702180
builtins@^1.0.3:
21712181
version "1.0.3"
21722182
resolved "https://registry.yarnpkg.com/builtins/-/builtins-1.0.3.tgz#cb94faeb61c8696451db36534e1422f94f0aee88"
@@ -2630,10 +2640,10 @@ comment-parser@1.1.6-beta.0:
26302640
resolved "https://registry.yarnpkg.com/comment-parser/-/comment-parser-1.1.6-beta.0.tgz#57e503b18d0a5bd008632dcc54b1f95c2fffe8f6"
26312641
integrity sha512-q3cA8TSMyqW7wcPSYWzbO/rMahnXgzs4SLG/UIWXdEsnXTFPZkEkWAdNgPiHig2OzxgpPLOh4WwsmClDxndwHw==
26322642

2633-
comment-parser@1.3.1:
2634-
version "1.3.1"
2635-
resolved "https://registry.yarnpkg.com/comment-parser/-/comment-parser-1.3.1.tgz#3d7ea3adaf9345594aedee6563f422348f165c1b"
2636-
integrity sha512-B52sN2VNghyq5ofvUsqZjmk6YkihBX5vMSChmSK9v4ShjKf3Vk5Xcmgpw4o+iIgtrnM/u5FiMpz9VKb8lpBveA==
2643+
comment-parser@1.4.0:
2644+
version "1.4.0"
2645+
resolved "https://registry.yarnpkg.com/comment-parser/-/comment-parser-1.4.0.tgz#0f8c560f59698193854f12884c20c0e39a26d32c"
2646+
integrity sha512-QLyTNiZ2KDOibvFPlZ6ZngVsZ/0gYnE6uTXi5aoDg8ed3AkJAz4sEje3Y8a29hQ1s6A99MZXe47fLAXQ1rTqaw==
26372647

26382648
common-ancestor-path@^1.0.1:
26392649
version "1.0.1"
@@ -3211,6 +3221,11 @@ eslint-config-salesforce@^1.1.0:
32113221
resolved "https://registry.yarnpkg.com/eslint-config-salesforce/-/eslint-config-salesforce-1.1.0.tgz#8f33e7cacd417f202727ae8e2b2fab27a81c0dc7"
32123222
integrity sha512-83foPo1Z8QoKc+APlZ7lN4uSRx4o2uicFMumi8n68Fx1/vPmBBMx86m15lOmEsAY7Gv97DneInVRotlc4+JaQw==
32133223

3224+
eslint-config-salesforce@^2.0.2:
3225+
version "2.0.2"
3226+
resolved "https://registry.yarnpkg.com/eslint-config-salesforce/-/eslint-config-salesforce-2.0.2.tgz#38eb2d8eb2824c66967ed9b45bc92082eba2f225"
3227+
integrity sha512-3jbrI+QFu/KaQbPYIBxItB3okqUtA4EBCGiR6s2kcUMIZBLBBGAURW0k62f9WAv1EagR3eUoO0m9ru7LTj2F5Q==
3228+
32143229
eslint-import-resolver-node@^0.3.6:
32153230
version "0.3.6"
32163231
resolved "https://registry.yarnpkg.com/eslint-import-resolver-node/-/eslint-import-resolver-node-0.3.6.tgz#4048b958395da89668252001dbd9eca6b83bacbd"
@@ -3265,17 +3280,19 @@ eslint-plugin-jsdoc@^35.1.2:
32653280
semver "^7.3.5"
32663281
spdx-expression-parse "^3.0.1"
32673282

3268-
eslint-plugin-jsdoc@^39.3.6:
3269-
version "39.3.6"
3270-
resolved "https://registry.yarnpkg.com/eslint-plugin-jsdoc/-/eslint-plugin-jsdoc-39.3.6.tgz#6ba29f32368d72a51335a3dc9ccd22ad0437665d"
3271-
integrity sha512-R6dZ4t83qPdMhIOGr7g2QII2pwCjYyKP+z0tPOfO1bbAbQyKC20Y2Rd6z1te86Lq3T7uM8bNo+VD9YFpE8HU/g==
3283+
eslint-plugin-jsdoc@^46.8.2:
3284+
version "46.8.2"
3285+
resolved "https://registry.yarnpkg.com/eslint-plugin-jsdoc/-/eslint-plugin-jsdoc-46.8.2.tgz#3e6b1c93e91e38fe01874d45da121b56393c54a5"
3286+
integrity sha512-5TSnD018f3tUJNne4s4gDWQflbsgOycIKEUBoCLn6XtBMgNHxQFmV8vVxUtiPxAQq8lrX85OaSG/2gnctxw9uQ==
32723287
dependencies:
3273-
"@es-joy/jsdoccomment" "~0.31.0"
3274-
comment-parser "1.3.1"
3288+
"@es-joy/jsdoccomment" "~0.40.1"
3289+
are-docs-informative "^0.0.2"
3290+
comment-parser "1.4.0"
32753291
debug "^4.3.4"
32763292
escape-string-regexp "^4.0.0"
3277-
esquery "^1.4.0"
3278-
semver "^7.3.7"
3293+
esquery "^1.5.0"
3294+
is-builtin-module "^3.2.1"
3295+
semver "^7.5.4"
32793296
spdx-expression-parse "^3.0.1"
32803297

32813298
eslint-plugin-prefer-arrow@^1.2.1:
@@ -3456,6 +3473,13 @@ esquery@^1.4.0:
34563473
dependencies:
34573474
estraverse "^5.1.0"
34583475

3476+
esquery@^1.5.0:
3477+
version "1.5.0"
3478+
resolved "https://registry.yarnpkg.com/esquery/-/esquery-1.5.0.tgz#6ce17738de8577694edd7361c57182ac8cb0db0b"
3479+
integrity sha512-YQLXUplAwJgCydQ78IMJywZCceoqk1oH01OERdSAJc/7U2AylwjhSCLDEtqwg811idIS/9fIU5GjG73IgjKMVg==
3480+
dependencies:
3481+
estraverse "^5.1.0"
3482+
34593483
esrecurse@^4.3.0:
34603484
version "4.3.0"
34613485
resolved "https://registry.yarnpkg.com/esrecurse/-/esrecurse-4.3.0.tgz#7ad7964d679abb28bee72cec63758b1c5d2c9921"
@@ -4507,6 +4531,13 @@ is-boolean-object@^1.1.0:
45074531
call-bind "^1.0.2"
45084532
has-tostringtag "^1.0.0"
45094533

4534+
is-builtin-module@^3.2.1:
4535+
version "3.2.1"
4536+
resolved "https://registry.yarnpkg.com/is-builtin-module/-/is-builtin-module-3.2.1.tgz#f03271717d8654cfcaf07ab0463faa3571581169"
4537+
integrity sha512-BSLE3HnV2syZ0FK0iMA/yUGplUeMmNz4AW5fnTunbCIqZi4vG3WjJT9FHMy5D69xmAYBHXQhJdALdpwVxV501A==
4538+
dependencies:
4539+
builtin-modules "^3.3.0"
4540+
45104541
is-callable@^1.1.3, is-callable@^1.1.4, is-callable@^1.2.4:
45114542
version "1.2.4"
45124543
resolved "https://registry.yarnpkg.com/is-callable/-/is-callable-1.2.4.tgz#47301d58dd0259407865547853df6d61fe471945"
@@ -4851,10 +4882,10 @@ jsdoc-type-pratt-parser@^1.0.4:
48514882
resolved "https://registry.yarnpkg.com/jsdoc-type-pratt-parser/-/jsdoc-type-pratt-parser-1.2.0.tgz#3482a3833b74a88c95a6ba7253f0c0de3b77b9f5"
48524883
integrity sha512-4STjeF14jp4bqha44nKMY1OUI6d2/g6uclHWUCZ7B4DoLzaB5bmpTkQrpqU+vSVzMD0LsKAOskcnI3I3VfIpmg==
48534884

4854-
jsdoc-type-pratt-parser@~3.1.0:
4855-
version "3.1.0"
4856-
resolved "https://registry.yarnpkg.com/jsdoc-type-pratt-parser/-/jsdoc-type-pratt-parser-3.1.0.tgz#a4a56bdc6e82e5865ffd9febc5b1a227ff28e67e"
4857-
integrity sha512-MgtD0ZiCDk9B+eI73BextfRrVQl0oyzRG8B2BjORts6jbunj4ScKPcyXGTbB6eXL4y9TzxCm6hyeLq/2ASzNdw==
4885+
jsdoc-type-pratt-parser@~4.0.0:
4886+
version "4.0.0"
4887+
resolved "https://registry.yarnpkg.com/jsdoc-type-pratt-parser/-/jsdoc-type-pratt-parser-4.0.0.tgz#136f0571a99c184d84ec84662c45c29ceff71114"
4888+
integrity sha512-YtOli5Cmzy3q4dP26GraSOeAhqecewG04hoO8DY56CH4KJ9Fvv5qKWUCCo3HZob7esJQHCv6/+bnTy72xZZaVQ==
48584889

48594890
jsesc@^2.5.1:
48604891
version "2.5.2"

0 commit comments

Comments
 (0)