Skip to content

Commit 46a0569

Browse files
committed
chore: update devDeps.
1 parent 3afb151 commit 46a0569

File tree

8 files changed

+392
-523
lines changed

8 files changed

+392
-523
lines changed

package.json

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@
2626
"@babel/plugin-transform-flow-strip-types": "^7.27.1",
2727
"@babel/preset-env": "^7.28.3",
2828
"@es-joy/escodegen": "^3.5.1",
29-
"@es-joy/jsdoc-eslint-parser": "^0.21.1",
29+
"@es-joy/jsdoc-eslint-parser": "^0.22.0",
3030
"@hkdobrev/run-if-changed": "^0.6.3",
3131
"@semantic-release/commit-analyzer": "^13.0.1",
3232
"@semantic-release/github": "^11.0.4",
@@ -42,16 +42,16 @@
4242
"@types/node": "^24.3.0",
4343
"@types/semver": "^7.7.0",
4444
"@types/spdx-expression-parse": "^3.0.5",
45-
"@typescript-eslint/types": "^8.39.1",
45+
"@typescript-eslint/types": "^8.41.0",
4646
"babel-plugin-add-module-exports": "^1.0.4",
4747
"babel-plugin-istanbul": "^7.0.0",
4848
"babel-plugin-transform-import-meta": "^2.3.3",
4949
"c8": "^10.1.3",
5050
"camelcase": "^8.0.0",
51-
"chai": "^5.2.1",
52-
"decamelize": "^6.0.0",
53-
"eslint": "9.33.0",
54-
"eslint-config-canonical": "~44.9.9",
51+
"chai": "^6.0.1",
52+
"decamelize": "^6.0.1",
53+
"eslint": "9.34.0",
54+
"eslint-config-canonical": "~45.0.0",
5555
"gitdown": "^4.1.1",
5656
"glob": "^11.0.3",
5757
"globals": "^16.3.0",
@@ -66,7 +66,7 @@
6666
"rimraf": "^6.0.1",
6767
"semantic-release": "^24.2.7",
6868
"typescript": "5.9.2",
69-
"typescript-eslint": "^8.39.1"
69+
"typescript-eslint": "^8.41.0"
7070
},
7171
"engines": {
7272
"node": ">=20.11.0"

pnpm-lock.yaml

Lines changed: 341 additions & 510 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

src/bin/generateDocs.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,7 @@ const formatCodeSnippet = (setup, ruleName) => {
6666
const getAssertions = async () => {
6767
const assertionFiles = (await glob(path.resolve(dirname, '../../test/rules/assertions/*.js'))).filter((file) => {
6868
return !file.includes('flatConfig');
69-
}).reverse();
69+
}).toReversed();
7070

7171
const assertionNames = assertionFiles.map((filePath) => {
7272
return path.basename(filePath, '.js');

src/iterateJsdoc.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1636,9 +1636,10 @@ const getUtils = (
16361636

16371637
/** @type {GetClassNode} */
16381638
utils.getClassNode = () => {
1639+
// eslint-disable-next-line canonical/no-use-extend-native -- Not extending
16391640
return [
16401641
...ancestors, node,
1641-
].reverse().find((parent) => {
1642+
].toReversed().find((parent) => {
16421643
return parent && [
16431644
'ClassDeclaration', 'ClassExpression',
16441645
].includes(parent.type);

src/rules/noBlankBlocks.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ export default iterateJsdoc(({
2727
line: lastDescriptionLine,
2828
},
2929
enableFixer ? () => {
30-
jsdoc.source.splice(0, jsdoc.source.length);
30+
jsdoc.source.splice(0);
3131
} : null,
3232
);
3333
}, {

src/rules/requireDescriptionCompleteSentence.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -247,7 +247,7 @@ export default iterateJsdoc(({
247247
index,
248248
length,
249249
};
250-
}).reverse();
250+
}).toReversed();
251251

252252
for (const {
253253
index,

src/rules/tagLines.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -169,7 +169,7 @@ export default iterateJsdoc(({
169169
},
170170
] of tg.source.entries()) {
171171
if (description) {
172-
lines.splice(0, lines.length);
172+
lines.splice(0);
173173
tagSourceIdx = idx;
174174
}
175175

test/getJsdocProcessPlugin.js

Lines changed: 38 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,10 @@ const check = ({
2323
text,
2424
}) => {
2525
const plugin = getJsdocProcessorPlugin(options);
26+
if (!plugin.processors || typeof plugin.processors.examples.preprocess !== 'function') {
27+
throw new Error('No processors');
28+
}
29+
2630
const results = plugin.processors.examples.preprocess(
2731
text, filename,
2832
);
@@ -168,6 +172,10 @@ describe('`getJsdocProcessorPlugin`', () => {
168172
`;
169173

170174
const plugin = getJsdocProcessorPlugin(options);
175+
if (!plugin.processors || typeof plugin.processors.examples.preprocess !== 'function') {
176+
throw new Error('No processors');
177+
}
178+
171179
const results = plugin.processors.examples.preprocess(
172180
text, filename,
173181
);
@@ -179,6 +187,10 @@ describe('`getJsdocProcessorPlugin`', () => {
179187
},
180188
]);
181189

190+
if (!plugin.processors || typeof plugin.processors.examples.postprocess !== 'function') {
191+
throw new Error('No processors');
192+
}
193+
182194
const postResults = plugin.processors.examples.postprocess(
183195
[
184196
[],
@@ -380,7 +392,6 @@ describe('`getJsdocProcessorPlugin`', () => {
380392
`;
381393
check({
382394
filename,
383-
// @ts-expect-error Ok?
384395
options,
385396
result: [
386397
text,
@@ -651,6 +662,10 @@ describe('`getJsdocProcessorPlugin`', () => {
651662
`;
652663

653664
const plugin = getJsdocProcessorPlugin(options);
665+
if (!plugin.processors || typeof plugin.processors.examples.preprocess !== 'function') {
666+
throw new Error('No processors');
667+
}
668+
654669
const results = plugin.processors.examples.preprocess(
655670
text, filename,
656671
);
@@ -662,6 +677,10 @@ describe('`getJsdocProcessorPlugin`', () => {
662677
},
663678
]);
664679

680+
if (!plugin.processors || typeof plugin.processors.examples.postprocess !== 'function') {
681+
throw new Error('No processors');
682+
}
683+
665684
const postResults = plugin.processors.examples.postprocess(
666685
[
667686
[], [
@@ -700,6 +719,11 @@ describe('`getJsdocProcessorPlugin`', () => {
700719
`;
701720

702721
const plugin = getJsdocProcessorPlugin(options);
722+
723+
if (!plugin.processors || typeof plugin.processors.examples.preprocess !== 'function') {
724+
throw new Error('No processors');
725+
}
726+
703727
const results = plugin.processors.examples.preprocess(
704728
text, filename,
705729
);
@@ -711,6 +735,10 @@ describe('`getJsdocProcessorPlugin`', () => {
711735
},
712736
]);
713737

738+
if (!plugin.processors || typeof plugin.processors.examples.postprocess !== 'function') {
739+
throw new Error('No processors');
740+
}
741+
714742
const postResults = plugin.processors.examples.postprocess(
715743
[
716744
[], [
@@ -750,6 +778,11 @@ describe('`getJsdocProcessorPlugin`', () => {
750778
`;
751779

752780
const plugin = getJsdocProcessorPlugin(options);
781+
782+
if (!plugin.processors || typeof plugin.processors.examples.preprocess !== 'function') {
783+
throw new Error('No processors');
784+
}
785+
753786
const results = plugin.processors.examples.preprocess(
754787
text, filename,
755788
);
@@ -761,6 +794,10 @@ describe('`getJsdocProcessorPlugin`', () => {
761794
},
762795
]);
763796

797+
if (!plugin.processors || typeof plugin.processors.examples.postprocess !== 'function') {
798+
throw new Error('No processors');
799+
}
800+
764801
const postResults = plugin.processors.examples.postprocess(
765802
[
766803
[], [

0 commit comments

Comments
 (0)