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/linter/linter.js
generated
vendored
7
node_modules/eslint/lib/linter/linter.js
generated
vendored
@@ -438,9 +438,8 @@ function getDirectiveComments(
|
||||
justification: justificationPart,
|
||||
} = directive;
|
||||
|
||||
const lineCommentSupported = /^eslint-disable-(next-)?line$/u.test(
|
||||
label,
|
||||
);
|
||||
const lineCommentSupported =
|
||||
/^eslint-disable-(?:next-)?line$/u.test(label);
|
||||
|
||||
if (comment.type === "Line" && !lineCommentSupported) {
|
||||
return;
|
||||
@@ -739,7 +738,7 @@ function normalizeEcmaVersionForLanguageOptions(ecmaVersion) {
|
||||
return LATEST_ECMA_VERSION;
|
||||
}
|
||||
|
||||
const eslintEnvPattern = /\/\*\s*eslint-env\s(.+?)(?:\*\/|$)/gsu;
|
||||
const eslintEnvPattern = /\/\*\s*eslint-env\s.+?(?:\*\/|$)/gsu;
|
||||
|
||||
/**
|
||||
* Checks whether or not there is a comment which has "eslint-env *" in a given text.
|
||||
|
||||
Reference in New Issue
Block a user