From cf5b6be6f8144f5932cdf062d380f7c0f51e64bd Mon Sep 17 00:00:00 2001 From: Milos Djermanovic Date: Fri, 5 Nov 2021 23:52:09 +0100 Subject: [PATCH] chore: update @eslint/eslintrc to avoid different versions of `js-yaml` (#15265) --- package.json | 2 +- tests/bin/eslint.js | 7 ++++--- 2 files changed, 5 insertions(+), 4 deletions(-) diff --git a/package.json b/package.json index 1a394f74c6f..d6f83259ebf 100644 --- a/package.json +++ b/package.json @@ -47,7 +47,7 @@ "homepage": "https://eslint.org", "bugs": "https://github.com/eslint/eslint/issues/", "dependencies": { - "@eslint/eslintrc": "^1.0.3", + "@eslint/eslintrc": "^1.0.4", "@humanwhocodes/config-array": "^0.6.0", "ajv": "^6.10.0", "chalk": "^4.0.0", diff --git a/tests/bin/eslint.js b/tests/bin/eslint.js index 55c26fba077..38f132b5839 100644 --- a/tests/bin/eslint.js +++ b/tests/bin/eslint.js @@ -391,10 +391,11 @@ describe("bin/eslint.js", () => { const child = runESLint(["--no-ignore", invalidConfig]); const exitCodeAssertion = assertExitCode(child, 2); const outputAssertion = getOutput(child).then(output => { - const expectedSubstring = ": bad indentation of a mapping entry at line"; - assert.strictEqual(output.stdout, ""); - assert.include(output.stderr, expectedSubstring); + assert.match( + output.stderr, + /: bad indentation of a mapping entry \(\d+:\d+\)/u // a part of the error message from `js-yaml` dependency + ); }); return Promise.all([exitCodeAssertion, outputAssertion]);