diff --git a/__tests__/fixtures/good.js b/__tests__/fixtures/good.js index a50a745..158ee03 100644 --- a/__tests__/fixtures/good.js +++ b/__tests__/fixtures/good.js @@ -356,9 +356,9 @@ handler(); try { render(); -} catch (error) { +} catch (err) { render({ - error, + err, }); } @@ -386,10 +386,10 @@ async function fetchJson(url) { const text = await request.text(); return JSON.parse(text); - } catch (error) { + } catch (err) { multiply(2, 1, 2, 3); - throw error; + throw err; } } @@ -592,12 +592,12 @@ Promise.all([Promise.resolve("a"), "b", Promise.resolve("c")]) return 1; }) - .catch((error) => { - throw error; + .catch((err) => { + throw err; }) .then(() => Promise.race([Promise.resolve("c"), Promise.resolve("d")])) - .catch((error) => { - throw error; + .catch((err) => { + throw err; }); class Base { diff --git a/__tests__/index.test.mjs b/__tests__/index.test.mjs index eede4c1..005acfa 100644 --- a/__tests__/index.test.mjs +++ b/__tests__/index.test.mjs @@ -325,7 +325,7 @@ test("should load the 'ava' preset", async (t) => { t.is(report[0].warningCount, 0, "eslint report without warnings"); }); -test.only("should load the 'esnext' preset", async (t) => { +test("should load the 'esnext' preset", async (t) => { const cli = new eslint.ESLint({ ignore: false, useEslintrc: false, diff --git a/package-lock.json b/package-lock.json index 60ea723..650d77b 100644 --- a/package-lock.json +++ b/package-lock.json @@ -15,7 +15,7 @@ }, "devDependencies": { "@ava/babel": "^2.0.0", - "@stylistic/eslint-plugin": "^2.4.0", + "@stylistic/eslint-plugin": "^2.6.1", "@types/confusing-browser-globals": "^1.0.3", "@types/eslint": "^8.56.11", "ava": "^6.1.3", diff --git a/package.json b/package.json index 6270f5b..24bea4a 100644 --- a/package.json +++ b/package.json @@ -32,7 +32,7 @@ }, "devDependencies": { "@ava/babel": "^2.0.0", - "@stylistic/eslint-plugin": "^2.4.0", + "@stylistic/eslint-plugin": "^2.6.1", "@types/confusing-browser-globals": "^1.0.3", "@types/eslint": "^8.56.11", "ava": "^6.1.3",