From 85a525a3095a39e65ddbfd373c90f5b0e566aebf Mon Sep 17 00:00:00 2001 From: Sol Lee <82362278+saul-atomrigs@users.noreply.github.com> Date: Wed, 9 Oct 2024 21:59:14 +0900 Subject: [PATCH] chore(eslint-plugin-query): `expect-expect` warning for `expectArrayEqualIgnoreOrder` (#8143) * fix: `expect-expect` warning for `expectArrayEqualIgnoreOrder` * fix: lint error could not find plugin `vitest` --- packages/eslint-plugin-query/eslint.config.js | 16 +++++++++++++++- 1 file changed, 15 insertions(+), 1 deletion(-) diff --git a/packages/eslint-plugin-query/eslint.config.js b/packages/eslint-plugin-query/eslint.config.js index 8ce6ad05fc..b3c65a3dce 100644 --- a/packages/eslint-plugin-query/eslint.config.js +++ b/packages/eslint-plugin-query/eslint.config.js @@ -1,5 +1,19 @@ // @ts-check import rootConfig from '../../eslint.config.js' +import vitest from '@vitest/eslint-plugin' -export default [...rootConfig] +export default [ + ...rootConfig, + { + plugins: { vitest }, + rules: { + 'vitest/expect-expect': [ + 'warn', + { + assertFunctionNames: ['expect', 'expectArrayEqualIgnoreOrder'], + }, + ], + }, + }, +]