Pull.
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:
7
node_modules/eslint/lib/languages/js/source-code/source-code.js
generated
vendored
7
node_modules/eslint/lib/languages/js/source-code/source-code.js
generated
vendored
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user