J'ai juste update le cutie.js, CONNARD
Ah oui, j'ai aussi add le info.js, qui est merdique d'ailleurs
This commit is contained in:
Syxpi
2025-10-11 22:06:46 +02:00
parent 14d4df5a40
commit b5cba1c318
283 changed files with 15040 additions and 12924 deletions

View File

@@ -1056,7 +1056,7 @@ class SourceCode extends TokenStore {
// only certain comment types are supported as line comments
return (
comment.type !== "Line" ||
!!/^eslint-disable-(next-)?line$/u.test(directive.label)
!!/^eslint-disable-(?:next-)?line$/u.test(directive.label)
);
});
@@ -1091,9 +1091,8 @@ class SourceCode extends TokenStore {
} = commentParser.parseDirective(comment.value);
// Step 2: Extract the directive value
const lineCommentSupported = /^eslint-disable-(next-)?line$/u.test(
label,
);
const lineCommentSupported =
/^eslint-disable-(?:next-)?line$/u.test(label);
if (comment.type === "Line" && !lineCommentSupported) {
return;