This commit is contained in:
2026-03-15 12:22:42 +01:00
parent cd99275933
commit 311ba5e7f3
558 changed files with 55182 additions and 22981 deletions

View File

@@ -1921,6 +1921,20 @@ class Linter {
});
}
} else {
if (config.language === jslang) {
for (const comment of sourceCode.getInlineConfigNodes()) {
const { label } = commentParser.parseDirective(
comment.value,
);
if (label === "eslint-env") {
slots.warningService.emitESLintEnvWarning(
options.filename,
comment.loc.start.line,
);
}
}
}
const inlineConfigResult = sourceCode.applyInlineConfig?.();
if (inlineConfigResult) {